diff --git a/test/index_test.rb b/test/index_test.rb index a771ad2..f5f42b8 100644 --- a/test/index_test.rb +++ b/test/index_test.rb @@ -59,8 +59,10 @@ class IndexTest < Minitest::Test assert_equal ["Dollar Tree"], Store.search(body: {query: {match: {name: "Dollar Tree"}}}, load: false).map(&:name) end - def test_body_warning - assert_output(nil, "The body option replaces the entire body, so the following options are ignored: where\n") { Store.search(body: {query: {match: {name: "dollar"}}}, where: {id: 1}) } + def test_body_incompatible_options + assert_raises(ArgumentError) do + Store.search(body: {query: {match: {name: "dollar"}}}, where: {id: 1}) + end end def test_block -- libgit2 0.21.0