mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
Fix RuboCop offense Style/UnlessElse (#36320).
git-svn-id: https://svn.redmine.org/redmine/trunk@22968 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f1d4201311
commit
e2daacfa34
@ -175,27 +175,23 @@ class SearchTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_search_should_be_case_insensitive_with_accented_characters
|
||||
unless sqlite? || postgresql?
|
||||
issue1 = Issue.generate!(:subject => "Special chars: ÖÖ")
|
||||
issue2 = Issue.generate!(:subject => "Special chars: Öö")
|
||||
r = Issue.search_results('ÖÖ')
|
||||
assert_include issue1, r
|
||||
assert_include issue2, r
|
||||
else
|
||||
skip
|
||||
end
|
||||
skip if sqlite? || postgresql?
|
||||
|
||||
issue1 = Issue.generate!(:subject => "Special chars: ÖÖ")
|
||||
issue2 = Issue.generate!(:subject => "Special chars: Öö")
|
||||
r = Issue.search_results('ÖÖ')
|
||||
assert_include issue1, r
|
||||
assert_include issue2, r
|
||||
end
|
||||
|
||||
def test_search_should_be_case_and_accent_insensitive_with_mysql
|
||||
if mysql?
|
||||
issue1 = Issue.generate!(:subject => "OO")
|
||||
issue2 = Issue.generate!(:subject => "oo")
|
||||
r = Issue.search_results('ÖÖ')
|
||||
assert_include issue1, r
|
||||
assert_include issue2, r
|
||||
else
|
||||
skip
|
||||
end
|
||||
skip unless mysql?
|
||||
|
||||
issue1 = Issue.generate!(:subject => "OO")
|
||||
issue2 = Issue.generate!(:subject => "oo")
|
||||
r = Issue.search_results('ÖÖ')
|
||||
assert_include issue1, r
|
||||
assert_include issue2, r
|
||||
end
|
||||
|
||||
def test_search_should_be_case_and_accent_insensitive_with_postgresql_and_noaccent_extension
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user