diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-26 14:45:58 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-26 14:45:58 +0000 |
commit | 9bbfc61a948881b9dc68437f01d6694c44ff4568 (patch) | |
tree | 4cfe7b94b22165aaae1ea514f05b27ceba1ddcc3 /test/unit | |
parent | f6152449dfd5372fbfa84e353a9037bd4fa90b84 (diff) | |
download | redmine-9bbfc61a948881b9dc68437f01d6694c44ff4568.tar.gz redmine-9bbfc61a948881b9dc68437f01d6694c44ff4568.zip |
shorten long line of test/unit/search_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20495 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/search_test.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/unit/search_test.rb b/test/unit/search_test.rb index 03d5bb9d6..5c98fdc92 100644 --- a/test/unit/search_test.rb +++ b/test/unit/search_test.rb @@ -188,15 +188,18 @@ class SearchTest < ActiveSupport::TestCase end def test_fetcher_should_handle_accents_in_phrases - f = Redmine::Search::Fetcher.new('No special chars "in a phrase"', User.anonymous, %w(issues), Project.all) + f = Redmine::Search::Fetcher.new('No special chars "in a phrase"', + User.anonymous, %w(issues), Project.all) assert_equal ['No', 'special', 'chars', 'in a phrase'], f.tokens - f = Redmine::Search::Fetcher.new('Special chars "in a phrase Öö"', User.anonymous, %w(issues), Project.all) + f = Redmine::Search::Fetcher.new('Special chars "in a phrase Öö"', + User.anonymous, %w(issues), Project.all) assert_equal ['Special', 'chars', 'in a phrase Öö'], f.tokens end def test_fetcher_should_exclude_single_character_tokens_except_for_chinese_characters - f = Redmine::Search::Fetcher.new('ca f é 漢 あ 한', User.anonymous, %w(issues), Project.all) + f = Redmine::Search::Fetcher.new('ca f é 漢 あ 한', + User.anonymous, %w(issues), Project.all) assert_equal ['ca', '漢'], f.tokens end |