public
Description: Build common named scopes automatically, and provide a simple way to merge them with a single #search call.
Clone URL: git://github.com/technoweenie/can_search.git
Click here to lend your support to: can_search and make a donation at www.pledgie.com !
adding test
towski (author)
Wed Sep 17 18:10:43 -0700 2008
commit  aee7254d17b4286786113b9f07a122ef51414bbb
tree    2fa815924a42cbbbbba2d3024a781b96f843926b
parent  5f65bf2d24c5cb2d3039b2ba587aea40c143f366
...
19
20
21
 
 
 
 
22
23
24
...
19
20
21
22
23
24
25
26
27
28
0
@@ -19,6 +19,10 @@ module CanSearch
0
     it "filters records by name that doesn't match" do
0
       compare_records Record.search(:name => "aye"), []
0
     end
0
+
0
+ it "doesn't filter records if the specified parameter is nil" do
0
+ compare_records Record.search(:name => nil), [:default, :day, :week_1, :week_2, :biweek_1, :biweek_2, :month_1, :month_2, :archive ]
0
+ end
0
   end
0
 
0
   describe LikeQueryScope do

Comments

    No one has commented yet.