Skip to content

Commit

Permalink
Fix test, remove Rails 5 warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatack committed Oct 30, 2014
1 parent b715864 commit a92ad04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/ransack/adapters/active_record/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ def self.sane_adapter?

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

Expand Down

0 comments on commit a92ad04

Please sign in to comment.