Sha256: 636c01c036edeb0c261503c1982a3dfeb5edff25aedf5d15b2328b7dcd31091f

Contents?: true

Size: 294 Bytes

Versions: 3

Compression:

Stored size: 294 Bytes

Contents

require_relative "test_helper"

class TestSimilar < Minitest::Unit::TestCase

  def test_fields
    store_names ["1% Organic Milk", "2% Organic Milk", "Popcorn"]
    assert_equal ["2% Organic Milk"], Product.where(name: "1% Organic Milk").first.similar(fields: ["name"]).map(&:name)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
searchkick-0.2.6 test/similar_test.rb
searchkick-0.2.5 test/similar_test.rb
searchkick-0.2.4 test/similar_test.rb