spec/named_scopes/conditions_spec.rb in binarylogic-searchlogic-2.2.3 vs spec/named_scopes/conditions_spec.rb in binarylogic-searchlogic-2.3.0

- old
+ new

@@ -13,9 +13,12 @@ context "comparison conditions" do 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 it "should have does not equal" do (5..7).each { |age| User.create(:age => age) } User.age_does_not_equal(6).all.should == User.find_all_by_age([5,7])