summaryrefslogtreecommitdiffstats
path: root/test/unit/search_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/search_test.rb')
-rw-r--r--test/unit/search_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/search_test.rb b/test/unit/search_test.rb
index bd9477025..b640202e8 100644
--- a/test/unit/search_test.rb
+++ b/test/unit/search_test.rb
@@ -190,6 +190,14 @@ class SearchTest < ActiveSupport::TestCase
Redmine::Database.reset
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)
+ 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)
+ assert_equal ['Special', 'chars', 'in a phrase Öö'], f.tokens
+ end
+
private
def remove_permission(role, permission)