summaryrefslogtreecommitdiffstats
path: root/test/unit/search_test.rb
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2021-10-03 19:42:31 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2021-10-03 19:42:31 +0000
commit673ec2f2a65541276436b5cf00d133b3f51a4980 (patch)
treeefa22f34ecc47d873316875681850d6e88c9b284 /test/unit/search_test.rb
parent715ffcda434b8ad224127d008f3376adfbcc2c85 (diff)
downloadredmine-673ec2f2a65541276436b5cf00d133b3f51a4980.tar.gz
redmine-673ec2f2a65541276436b5cf00d133b3f51a4980.zip
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
Diffstat (limited to 'test/unit/search_test.rb')
-rw-r--r--test/unit/search_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/search_test.rb b/test/unit/search_test.rb
index 1c6f52f67..532dff299 100644
--- a/test/unit/search_test.rb
+++ b/test/unit/search_test.rb
@@ -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