test/test_helper.rb in searchkick-1.5.0 vs test/test_helper.rb in searchkick-1.5.1

- old
+ new

@@ -266,10 +266,11 @@ t.string :name t.string :type end class Product < ActiveRecord::Base + belongs_to :store end class Store < ActiveRecord::Base has_many :products end @@ -289,12 +290,10 @@ class Cat < Animal end end class Product - belongs_to :store - searchkick \ synonyms: [ ["clorox", "bleach"], ["scallion", "greenonion"], ["saranwrap", "plasticwrap"], @@ -315,10 +314,11 @@ word_start: [:name], word_middle: [:name], word_end: [:name], highlight: [:name], searchable: [:name, :color], + default_fields: [:name, :color], filterable: [:name, :color, :description], # unsearchable: [:description], # only_analyzed: [:alt_description], match: ENV["MATCH"] ? ENV["MATCH"].to_sym : nil @@ -386,15 +386,16 @@ class Speaker searchkick \ conversions: ["conversions_a", "conversions_b"] - attr_accessor :conversions_a, :conversions_b + attr_accessor :conversions_a, :conversions_b, :aisle def search_data serializable_hash.except("id").merge( conversions_a: conversions_a, - conversions_b: conversions_b + conversions_b: conversions_b, + aisle: aisle ) end end class Animal