Commit 73ec66348b4c97c0d2643821faf24bd80b0daefb
1 parent
34ee92e0
Exists in
relation
Added test [skip ci]
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
test/index_test.rb
... | ... | @@ -65,6 +65,10 @@ class IndexTest < Minitest::Test |
65 | 65 | assert_raises(ArgumentError) do |
66 | 66 | Store.search(body: {query: {match: {name: "dollar"}}}, where: {id: 1}).to_a |
67 | 67 | end |
68 | + | |
69 | + assert_raises(ArgumentError) do | |
70 | + Store.search.body(query: {match: {name: "dollar"}}).where(id: 1).to_a | |
71 | + end | |
68 | 72 | end |
69 | 73 | |
70 | 74 | def test_block | ... | ... |