Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed the nil-value "equals" condition assertion because searchlogi…

…c now drops scopes with blank values.
  • Loading branch information...
commit 015a567d81a034d38bc330da2b86994556e58629 1 parent 769ddc2
@laserlemon laserlemon authored committed
Showing with 0 additions and 1 deletion.
  1. +0 −1  spec/named_scopes/conditions_spec.rb
View
1  spec/named_scopes/conditions_spec.rb
@@ -15,7 +15,6 @@
it "should have equals" do
(5..7).each { |age| User.create(:age => age) }
User.age_equals(6).all.should == User.find_all_by_age(6)
- User.age_equals(nil).all.should == User.find_all_by_age(nil)
User.age_equals(5..6).all.should == User.find_all_by_age(5..6)
User.age_equals([5, 7]).all.should == User.find_all_by_age([5, 7])
end
Please sign in to comment.
Something went wrong with that request. Please try again.