Sha256: 3f1555595040f0ebb788201bf06cc987e16c69c7f81bd434d223d22a1478aac1
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
require_relative "test_helper" class RoutingTest < Minitest::Test def test_routing_query query = Store.search("Dollar Tree", routing: "Dollar Tree", execute: false) assert_equal query.params[:routing], "Dollar Tree" end def test_routing_mappings index_options = Store.searchkick_index.index_options 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 end def test_routing_incorrect_node store_names ["Dollar Tree"], Store assert_search "*", ["Dollar Tree"], {routing: "Boom"}, Store end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
searchkick-3.1.0 | test/routing_test.rb |