Skip to content

Commit a92ad04

Browse files
committed
Fix test, remove Rails 5 warning message
1 parent b715864 commit a92ad04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/ransack/adapters/active_record/base_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ def self.sane_adapter?
169169

170170
it "should function correctly when an attribute name has 'and' in it" do
171171
# FIXME: this test does not pass!
172-
p = Person.create!(:terms_and_conditions => 'Accepted')
173-
s = Person.search(:terms_and_conditions_eq => 'Accepted')
172+
p = Person.create!(:terms_and_conditions => true)
173+
s = Person.search(:terms_and_conditions_eq => true)
174174
# search is not detecting the attribute
175175
puts "
176176
FIXME: Search not detecting the `terms_and_conditions` attribute in
177-
base_spec.rb, line 177: #{s.result.to_sql}"
177+
base_spec.rb, line 178: #{s.result.to_sql}"
178178
# expect(s.result.to_a).to eq [p]
179179
end
180180

0 commit comments

Comments
 (0)