Commit 04e98f108d7d18af038dc38e5f9c7ebe084f888a
1 parent
cbb15d8e
Exists in
master
and in
21 other branches
Better model test [skip ci]
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/model_test.rb
... | ... | @@ -36,7 +36,7 @@ class ModelTest < Minitest::Test |
36 | 36 | |
37 | 37 | def test_multiple_models |
38 | 38 | store_names ["Product A"] |
39 | - store_names ["Product B"], Store | |
40 | - assert_equal Product.all + Store.all, Searchkick.search("product", index_name: [Product, Store], order: "name").to_a | |
39 | + store_names ["Product B"], Speaker | |
40 | + assert_equal Product.all + Speaker.all, Searchkick.search("product", index_name: [Product, Speaker], fields: [:name], order: "name").to_a | |
41 | 41 | end |
42 | 42 | end | ... | ... |