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

Add tests for #35764.

git-svn-id: http://svn.redmine.org/redmine/trunk@21239 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2021-10-05 19:55:10 +00:00
parent 506fc9d74c
commit a84efa8046
2 changed files with 12 additions and 0 deletions

View File

@ -3422,4 +3422,9 @@ class IssueTest < ActiveSupport::TestCase
r = Issue.like('as_f')
assert_include issue, r
end
def test_like_should_tokenize
r = Issue.like('issue today')
assert_include Issue.find(7), r
end
end

View File

@ -2826,4 +2826,11 @@ class QueryTest < ActiveSupport::TestCase
query.add_filter('subject', '~', ['te_t'])
assert_equal 1, query.issue_count
end
def test_sql_contains_should_tokenize
query = IssueQuery.new(:project => nil, :name => '_')
query.add_filter('subject', '~', ['issue today'])
assert_equal 1, query.issue_count
end
end