Commit bb47d0616b1b7656d4ed29637ab142b0ec14306a
1 parent
6c744d01
Exists in
master
and in
19 other branches
Updated body options test [skip ci]
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
test/index_test.rb
... | ... | @@ -59,8 +59,10 @@ class IndexTest < Minitest::Test |
59 | 59 | assert_equal ["Dollar Tree"], Store.search(body: {query: {match: {name: "Dollar Tree"}}}, load: false).map(&:name) |
60 | 60 | end |
61 | 61 | |
62 | - def test_body_warning | |
63 | - 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}) } | |
62 | + def test_body_incompatible_options | |
63 | + assert_raises(ArgumentError) do | |
64 | + Store.search(body: {query: {match: {name: "dollar"}}}, where: {id: 1}) | |
65 | + end | |
64 | 66 | end |
65 | 67 | |
66 | 68 | def test_block | ... | ... |