Commit ae687b3eed2e1b1f9692eee8a8e2dad9bd610b3f
1 parent
4e0a7940
Exists in
master
and in
17 other branches
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,7 +9,7 @@ class ErrorsTest < Minitest::Test | ||
9 | name: {type: "date"} | 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 | index.delete if index.exists? | 13 | index.delete if index.exists? |
14 | index.create_index | 14 | index.create_index |
15 | index.store valid_dog | 15 | index.store valid_dog |
test/index_test.rb
@@ -57,8 +57,7 @@ class IndexTest < Minitest::Test | @@ -57,8 +57,7 @@ class IndexTest < Minitest::Test | ||
57 | 57 | ||
58 | def test_body | 58 | def test_body |
59 | store_names ["Dollar Tree"], Store | 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 | end | 61 | end |
63 | 62 | ||
64 | def test_body_incompatible_options | 63 | def test_body_incompatible_options |