diff --git a/test/errors_test.rb b/test/errors_test.rb index 7b991af..607e86f 100644 --- a/test/errors_test.rb +++ b/test/errors_test.rb @@ -9,7 +9,7 @@ class ErrorsTest < Minitest::Test name: {type: "date"} } } - index = Searchkick::Index.new "dogs", mappings: mapping + index = Searchkick::Index.new "dogs", mappings: mapping, _type: "dog" index.delete if index.exists? index.create_index index.store valid_dog diff --git a/test/index_test.rb b/test/index_test.rb index 802701b..33421c5 100644 --- a/test/index_test.rb +++ b/test/index_test.rb @@ -57,8 +57,7 @@ class IndexTest < Minitest::Test def test_body store_names ["Dollar Tree"], Store - assert_equal [], Store.search(body: {query: {match: {name: "dollar"}}}).map(&:name) - assert_equal ["Dollar Tree"], Store.search(body: {query: {match: {name: "Dollar Tree"}}}, load: false).map(&:name) + assert_equal ["Dollar Tree"], Store.search(body: {query: {match: {name: "dollar"}}}, load: false).map(&:name) end def test_body_incompatible_options -- libgit2 0.21.0