Sha256: 832890cc9514d4a3461aa627d5d60d7ed8cc14d765247b07caebe8d72213728c

Contents?: true

Size: 410 Bytes

Versions: 20

Compression:

Stored size: 410 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][:_default_][:_routing], required: true
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
searchkick-2.0.4 test/routing_test.rb
searchkick-2.0.3 test/routing_test.rb
searchkick-2.0.2 test/routing_test.rb
searchkick-2.0.1 test/routing_test.rb
searchkick-2.0.0 test/routing_test.rb
searchkick-1.5.1 test/routing_test.rb
searchkick-1.5.0 test/routing_test.rb
searchkick-1.4.2 test/routing_test.rb
searchkick-1.4.1 test/routing_test.rb
searchkick-1.4.0 test/routing_test.rb
searchkick-1.3.6 test/routing_test.rb
searchkick-1.3.5 test/routing_test.rb
searchkick-1.3.4 test/routing_test.rb
searchkick-1.3.3 test/routing_test.rb
searchkick-1.3.2 test/routing_test.rb
searchkick_bharthur-0.0.2 test/routing_test.rb
searchkick_bharthur-0.0.1 test/routing_test.rb
searchkick-1.3.1 test/routing_test.rb
searchkick-1.3.0 test/routing_test.rb
searchkick-1.2.1 test/routing_test.rb