Commit 03b834fd09deeca5422263276cdbf325cdeeb54f
1 parent
0a07e962
Exists in
master
and in
5 other branches
Removed duplicate test [skip ci]
Showing
1 changed file
with
4 additions
and
10 deletions
Show diff stats
test/match_test.rb
@@ -18,13 +18,6 @@ class MatchTest < Minitest::Test | @@ -18,13 +18,6 @@ class MatchTest < Minitest::Test | ||
18 | assert_search "pepperjack cheese skewers", ["Pepper Jack Cheese Skewers"] | 18 | assert_search "pepperjack cheese skewers", ["Pepper Jack Cheese Skewers"] |
19 | end | 19 | end |
20 | 20 | ||
21 | - def test_operator | ||
22 | - store_names ["fresh", "honey"] | ||
23 | - assert_search "fresh honey", ["fresh", "honey"], {operator: "or"} | ||
24 | - assert_search "fresh honey", [], {operator: "and"} | ||
25 | - assert_search "fresh honey", ["fresh", "honey"], {operator: :or} | ||
26 | - end | ||
27 | - | ||
28 | # def test_cheese_space_in_query | 21 | # def test_cheese_space_in_query |
29 | # store_names ["Pepperjack Cheese Skewers"] | 22 | # store_names ["Pepperjack Cheese Skewers"] |
30 | # assert_search "pepper jack cheese skewers", ["Pepperjack Cheese Skewers"] | 23 | # assert_search "pepper jack cheese skewers", ["Pepperjack Cheese Skewers"] |
@@ -266,9 +259,10 @@ class MatchTest < Minitest::Test | @@ -266,9 +259,10 @@ class MatchTest < Minitest::Test | ||
266 | # operator | 259 | # operator |
267 | 260 | ||
268 | def test_operator | 261 | def test_operator |
269 | - store_names ["Honey"] | ||
270 | - assert_search "fresh honey", [] | ||
271 | - assert_search "fresh honey", ["Honey"], operator: "or" | 262 | + store_names ["fresh", "honey"] |
263 | + assert_search "fresh honey", ["fresh", "honey"], {operator: "or"} | ||
264 | + assert_search "fresh honey", [], {operator: "and"} | ||
265 | + assert_search "fresh honey", ["fresh", "honey"], {operator: :or} | ||
272 | end | 266 | end |
273 | 267 | ||
274 | def test_operator_scoring | 268 | def test_operator_scoring |