spec/integration/associations_spec.rb in pg_search-2.1.1 vs spec/integration/associations_spec.rb in pg_search-2.1.2
- old
+ new
@@ -129,10 +129,10 @@
])
]
results = ModelWithHasMany
.limit(1)
- .order("#{ModelWithHasMany.quoted_table_name}.id ASC")
+ .order(Arel.sql("#{ModelWithHasMany.quoted_table_name}.id ASC"))
.with_associated('foo bar')
expect(results.map(&:title)).to match_array(included.map(&:title))
expect(results).not_to include(excluded)
end