test/routing_test.rb in searchkick-2.5.0 vs test/routing_test.rb in searchkick-3.0.0
- old
+ new
@@ -6,10 +6,10 @@
assert_equal query.params[:routing], "Dollar Tree"
end
def test_routing_mappings
index_options = Store.searchkick_index.index_options
- assert_equal index_options[:mappings][:_default_][:_routing], required: true
+ assert_equal index_options[:mappings]["store"][:_routing], required: true
end
def test_routing_correct_node
store_names ["Dollar Tree"], Store
assert_search "*", ["Dollar Tree"], {routing: "Dollar Tree"}, Store