test/routing_test.rb in searchkick-0.9.1 vs test/routing_test.rb in searchkick-1.0.0

- old
+ new

@@ -1,14 +1,15 @@ require_relative "test_helper" -class TestRouting < Minitest::Test - +class RoutingTest < Minitest::Test def test_routing_query + skip if elasticsearch2? query = Store.search("Dollar Tree", routing: "Dollar Tree", execute: false) assert_equal query.params[:routing], "Dollar Tree" end def test_routing_mappings + skip if elasticsearch2? index_options = Store.searchkick_index.index_options - assert_equal index_options[:mappings][:_default_][:_routing], {required: true, path: "name"} + assert_equal index_options[:mappings][:_default_][:_routing], required: true, path: "name" end end