spec/search_spec.rb in searchlogic-2.1.10 vs spec/search_spec.rb in searchlogic-2.1.11

- old
+ new

@@ -107,9 +107,15 @@ search = User.search search.orders_total_gt = 10 search.orders_total_gt.should == 10 end + it "should allow setting pre-existing association conditions" do + search = Company.search + search.users_uname = "bjohnson" + search.users_uname.should == "bjohnson" + end + it "should allow using custom conditions" do User.named_scope(:four_year_olds, { :conditions => { :age => 4 } }) search = User.search search.four_year_olds = true search.four_year_olds.should == true