Commit dd0b083645bdbe7ecbeee106db1bc34852fe40d2
1 parent
b7410431
Exists in
master
and in
19 other branches
Fixed test
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
Rakefile
test/index_test.rb
... | ... | @@ -114,10 +114,10 @@ class IndexTest < Minitest::Test |
114 | 114 | store_names ["Product A"] |
115 | 115 | raise ActiveRecord::Rollback |
116 | 116 | end |
117 | - assert_search "product", [] | |
117 | + assert_search "*", [] | |
118 | 118 | end |
119 | 119 | |
120 | - def test_analyzed_only | |
120 | + def test_filterable | |
121 | 121 | # skip for 5.0 since it throws |
122 | 122 | # Cannot search on field [alt_description] since it is not indexed. |
123 | 123 | skip unless elasticsearch_below50? |
... | ... | @@ -125,7 +125,7 @@ class IndexTest < Minitest::Test |
125 | 125 | assert_search "*", [], where: {alt_description: "Hello"} |
126 | 126 | end |
127 | 127 | |
128 | - def test_analyzed_only_large_value | |
128 | + def test_large_value | |
129 | 129 | skip if nobrainer? |
130 | 130 | large_value = 10000.times.map { "hello" }.join(" ") |
131 | 131 | store [{name: "Product A", alt_description: large_value}] | ... | ... |