File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spec/ransack/adapters/active_record Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments