spec/named_scopes/conditions_spec.rb in binarylogic-searchlogic-2.3.3 vs spec/named_scopes/conditions_spec.rb in binarylogic-searchlogic-2.3.4
- old
+ new
@@ -290,6 +290,12 @@
Company.users_count_gt(10)
User.create
User.company_id_null.count.should == 1
User.company_id_not_null.count.should == 0
end
+
+ it "should fix bug for issue 26" do
+ count1 = User.id_ne(10).username_not_like("root").count
+ count2 = User.id_ne(10).username_not_like("root").count
+ count1.should == count2
+ end
end