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

- old
+ new

@@ -113,9 +113,15 @@ search = Company.search search.users_uname = "bjohnson" search.users_uname.should == "bjohnson" end + it "should allow setting pre-existing association alias conditions" do + search = Company.search + search.users_username_has = "bjohnson" + search.users_username_has.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