Sha256: d4523bcd3befe81a80b14a8f82102e8ffe430f239caaaf5fa7f823b158a27a89

Contents?: true

Size: 480 Bytes

Versions: 8

Compression:

Stored size: 480 Bytes

Contents

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"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
searchkick-1.2.0 test/routing_test.rb
searchkick-1.1.2 test/routing_test.rb
searchkick-1.1.1 test/routing_test.rb
searchkick-1.1.0 test/routing_test.rb
searchkick-1.0.3 test/routing_test.rb
searchkick-1.0.2 test/routing_test.rb
searchkick-1.0.1 test/routing_test.rb
searchkick-1.0.0 test/routing_test.rb