spec/search_spec.rb in searchlogic-2.1.1 vs spec/search_spec.rb in searchlogic-2.1.2
- old
+ new
@@ -134,9 +134,14 @@
it "should not allow setting conditions that are not scopes" do
search = User.search
lambda { search.unknown = true }.should raise_error(Searchlogic::Search::UnknownConditionError)
end
+ it "should not use the ruby implementation of the id method" do
+ search = User.search
+ search.id.should be_nil
+ end
+
context "type casting" do
it "should be a Boolean given true" do
search = User.search
search.id_nil = true
search.id_nil.should == true
\ No newline at end of file