Permalink
Browse files

Keep regexp tests together [skip ci]

  • Loading branch information...
ankane committed Oct 11, 2018
1 parent 9483e7d commit 0604904b6c57b92377e1bb74f9a117f9c747c1bb
Showing with 5 additions and 5 deletions.
  1. +5 −5 test/where_test.rb
@@ -74,11 +74,6 @@ def test_regexp
assert_search "*", ["Product A"], where: {name: /Pro.+/}
end
def test_prefix
store_names ["Product A", "Product B", "Item C"]
assert_search "*", ["Product A", "Product B"], where: { name: { prefix: 'Pro'}}
end
def test_alternate_regexp
store_names ["Product A", "Item B"]
assert_search "*", ["Product A"], where: {name: {regexp: "Pro.+"}}
@@ -89,6 +84,11 @@ def test_special_regexp
assert_search "*", ["Product <A>"], where: {name: /Pro.+<.+/}
end
def test_prefix
store_names ["Product A", "Product B", "Item C"]
assert_search "*", ["Product A", "Product B"], where: {name: {prefix: "Pro"}}
end
def test_where_string
store [
{name: "Product A", color: "RED"}

0 comments on commit 0604904

Please sign in to comment.