spec/integration/associations_spec.rb in pg_search-2.1.7 vs spec/integration/associations_spec.rb in pg_search-2.2.0

- old
+ new

@@ -164,19 +164,19 @@ model do include PgSearch has_many :models_of_first_type, - class_name: 'FirstAssociatedModel', - foreign_key: 'ModelWithManyAssociations_id' + class_name: 'FirstAssociatedModel', + foreign_key: 'ModelWithManyAssociations_id' belongs_to :model_of_second_type, - class_name: 'SecondAssociatedModel' + class_name: 'SecondAssociatedModel' pg_search_scope :with_associated, - against: :title, - associated_against: { models_of_first_type: :title, model_of_second_type: :title } + against: :title, + associated_against: { models_of_first_type: :title, model_of_second_type: :title } end end it "returns rows that match the query in either its own columns or the columns of the associated model" do matching_second = SecondAssociatedModel.create!(title: "foo bar") @@ -223,15 +223,15 @@ model do include PgSearch has_many :things, - class_name: 'DoublyAssociatedModel', - foreign_key: 'ModelWithDoubleAssociation_id' + class_name: 'DoublyAssociatedModel', + foreign_key: 'ModelWithDoubleAssociation_id' has_many :thingamabobs, - class_name: 'DoublyAssociatedModel', - foreign_key: 'ModelWithDoubleAssociation_again_id' + class_name: 'DoublyAssociatedModel', + foreign_key: 'ModelWithDoubleAssociation_again_id' pg_search_scope :with_associated, against: :title, associated_against: { things: :title, thingamabobs: :title } end end