spec/search_spec.rb in binarylogic-searchlogic-2.0.1 vs spec/search_spec.rb in binarylogic-searchlogic-2.1.0

- old
+ new

@@ -38,9 +38,15 @@ search2.age_gt = 1 search2.all.should == User.all search1.all.should == [user2] end + it "should delete the condition" do + search = User.search(:username_like => "bjohnson") + search.delete("username_like") + search.username_like.should be_nil + end + context "conditions" do it "should set the conditions and be accessible individually" do search = User.search search.conditions = {:username => "bjohnson"} search.username.should == "bjohnson" \ No newline at end of file