From bb47d0616b1b7656d4ed29637ab142b0ec14306a Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 1 Mar 2018 04:14:15 -0800 Subject: [PATCH] Updated body options test [skip ci] --- test/index_test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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