]> source.dussan.org Git - redmine.git/commitdiff
Removes '%' signs from test strings in search test (#35073).
authorMarius Balteanu <marius.balteanu@zitec.com>
Sun, 3 Oct 2021 19:42:31 +0000 (19:42 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Sun, 3 Oct 2021 19:42:31 +0000 (19:42 +0000)
Patch by Jens Krämer.

git-svn-id: http://svn.redmine.org/redmine/trunk@21229 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/search_test.rb

index 1c6f52f67c733e73591e18d746fce7f1447aba5d..532dff299fda386d354fac77d9e4a99e182a1d39 100644 (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