test/routing_test.rb in searchkick-1.2.0 vs test/routing_test.rb in searchkick-1.2.1
- old
+ new
@@ -1,15 +1,13 @@
require_relative "test_helper"
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
end
end