1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 11:37:14 +00:00

Removes '%' signs from test strings in search test (#35073).

Patch by Jens Krämer.

git-svn-id: http://svn.redmine.org/redmine/trunk@21229 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2021-10-03 19:42:31 +00:00
parent 715ffcda43
commit 673ec2f2a6

View File

@ -39,9 +39,9 @@ class SearchTest < ActiveSupport::TestCase
def setup
User.current = nil
@project = Project.find(1)
@issue_keyword = '%unable to print recipes%'
@issue_keyword = 'unable to print recipes'
@issue = Issue.find(1)
@changeset_keyword = '%very first commit%'
@changeset_keyword = 'very first commit'
@changeset = Changeset.find(100)
end
@ -138,7 +138,7 @@ class SearchTest < ActiveSupport::TestCase
issue = Issue.find(1)
assert_equal 2, issue.journals.where("notes LIKE '%notes%'").count
r = Issue.search_results('%notes%')
r = Issue.search_results('notes')
assert_equal 1, r.size
assert_equal issue, r.first
end