Commit 82423ba64e4291fc520ee08203e18ef5f4b53d51
1 parent
7ca3f1a7
Exists in
master
and in
28 other branches
Preparing tests for future accent insensitive search
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
plugins/pg_search/test/unit/pg_search_plugin_test.rb
... | ... | @@ -14,6 +14,16 @@ class PgSearchPluginTest < ActiveSupport::TestCase |
14 | 14 | assert_includes search(Profile, 'water'), profile |
15 | 15 | end |
16 | 16 | |
17 | + # TODO This feature is available only on Postgresql 9.0 | |
18 | + # http://www.postgresql.org/docs/9.0/static/unaccent.html | |
19 | + # should 'ignore accents' do | |
20 | + # profile = fast_create(Profile, :name => 'Produção', :identifier => 'colméia') | |
21 | + # assert_includes search(Profile, 'Produção'), profile | |
22 | + # assert_includes search(Profile, 'Producao'), profile | |
23 | + # assert_includes search(Profile, 'colméia'), profile | |
24 | + # assert_includes search(Profile, 'colmeia'), profile | |
25 | + # end | |
26 | + | |
17 | 27 | private |
18 | 28 | |
19 | 29 | def search(scope, query) | ... | ... |