Sha256: c88f6ba6619c1be9f77a74c6b96b90e1e7c2e308db9a77d9f233b57565ba6a8c

Contents?: true

Size: 427 Bytes

Versions: 3

Compression:

Stored size: 427 Bytes

Contents

require_relative "test_helper"

class TestRouting < 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, path: "name"}
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
searchkick-0.9.1 test/routing_test.rb
searchkick-sinneduy-0.9.0 test/routing_test.rb
searchkick-0.9.0 test/routing_test.rb