Commit 73ec66348b4c97c0d2643821faf24bd80b0daefb

Authored by Andrew Kane
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,6 +65,10 @@ class IndexTest < Minitest::Test
65 assert_raises(ArgumentError) do 65 assert_raises(ArgumentError) do
66 Store.search(body: {query: {match: {name: "dollar"}}}, where: {id: 1}).to_a 66 Store.search(body: {query: {match: {name: "dollar"}}}, where: {id: 1}).to_a
67 end 67 end
  68 +
  69 + assert_raises(ArgumentError) do
  70 + Store.search.body(query: {match: {name: "dollar"}}).where(id: 1).to_a
  71 + end
68 end 72 end
69 73
70 def test_block 74 def test_block