From 673ec2f2a65541276436b5cf00d133b3f51a4980 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sun, 3 Oct 2021 19:42:31 +0000 Subject: Removes '%' signs from test strings in search test (#35073). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/unit/search_test.rb') 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 -- cgit v1.2.3