Commit ae687b3eed2e1b1f9692eee8a8e2dad9bd610b3f

Authored by Andrew Kane
1 parent 4e0a7940

Fixed tests

Showing 2 changed files with 2 additions and 3 deletions   Show diff stats
test/errors_test.rb
... ... @@ -9,7 +9,7 @@ class ErrorsTest < Minitest::Test
9 9 name: {type: "date"}
10 10 }
11 11 }
12   - index = Searchkick::Index.new "dogs", mappings: mapping
  12 + index = Searchkick::Index.new "dogs", mappings: mapping, _type: "dog"
13 13 index.delete if index.exists?
14 14 index.create_index
15 15 index.store valid_dog
... ...
test/index_test.rb
... ... @@ -57,8 +57,7 @@ class IndexTest < Minitest::Test
57 57  
58 58 def test_body
59 59 store_names ["Dollar Tree"], Store
60   - assert_equal [], Store.search(body: {query: {match: {name: "dollar"}}}).map(&:name)
61   - assert_equal ["Dollar Tree"], Store.search(body: {query: {match: {name: "Dollar Tree"}}}, load: false).map(&:name)
  60 + assert_equal ["Dollar Tree"], Store.search(body: {query: {match: {name: "dollar"}}}, load: false).map(&:name)
62 61 end
63 62  
64 63 def test_body_incompatible_options
... ...