Project

General

Profile

Feature #35073 » 0001-removes-signs-from-test-strings-in-search-test.patch

Jens Krämer, 2021-04-12 08:44

View differences:

test/unit/search_test.rb
39 39
  def setup
40 40
    User.current = nil
41 41
    @project = Project.find(1)
42
    @issue_keyword = '%unable to print recipes%'
42
    @issue_keyword = 'unable to print recipes'
43 43
    @issue = Issue.find(1)
44
    @changeset_keyword = '%very first commit%'
44
    @changeset_keyword = 'very first commit'
45 45
    @changeset = Changeset.find(100)
46 46
  end
47 47

  
......
138 138
    issue = Issue.find(1)
139 139
    assert_equal 2, issue.journals.where("notes LIKE '%notes%'").count
140 140

  
141
    r = Issue.search_results('%notes%')
141
    r = Issue.search_results('notes')
142 142
    assert_equal 1, r.size
143 143
    assert_equal issue, r.first
144 144
  end
(5-5/8)