spec/named_scopes/conditions_spec.rb in binarylogic-searchlogic-2.2.1 vs spec/named_scopes/conditions_spec.rb in binarylogic-searchlogic-2.2.2
- old
+ new
@@ -268,7 +268,10 @@
end
end
it "should have priorty to columns over conflicting association conditions" do
Company.users_count_gt(10)
+ User.create
+ User.company_id_null.count.should == 1
+ User.company_id_not_null.count.should == 0
end
end