Commit 13d63c85a847e7f4d79187f98fbc674fdf666981
1 parent
866cbfdc
Exists in
master
and in
21 other branches
Use OpenStruct for Mongoid
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/index_test.rb
... | ... | @@ -82,7 +82,7 @@ class TestIndex < Minitest::Test |
82 | 82 | |
83 | 83 | def test_remove_blank_id |
84 | 84 | store_names ["Product A"] |
85 | - Product.searchkick_index.remove(Product.new) | |
85 | + Product.searchkick_index.remove(OpenStruct.new) | |
86 | 86 | assert_search "product", ["Product A"] |
87 | 87 | ensure |
88 | 88 | Product.reindex | ... | ... |