public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
remove the route method from specs
adelcambre (author)
Sat Oct 11 00:00:50 -0700 2008
commit  d425060afd09ba313ae5fba3568029106009abf8
tree    71d34c974db790a3941b7138810216ff8de5f478
parent  d4917e085ab21bd15ec1960745f0e5e3449a16aa
...
6
7
8
9
 
10
11
12
...
22
23
24
25
 
26
27
28
...
32
33
34
35
 
36
37
38
...
42
43
44
45
 
46
47
48
...
6
7
8
 
9
10
11
12
...
22
23
24
 
25
26
27
28
...
32
33
34
 
35
36
37
38
...
42
43
44
 
45
46
47
48
0
@@ -6,7 +6,7 @@ describe "Recognizing requests for deferred routes" do
0
     before :each do
0
       Merb::Router.prepare do      
0
         match("/deferred/:zoo").defer_to do |request, params|
0
-          route params.merge(:controller => "w00t") if params[:zoo]
0
+          params.merge(:controller => "w00t") if params[:zoo]
0
         end
0
       end    
0
     end
0
@@ -22,7 +22,7 @@ describe "Recognizing requests for deferred routes" do
0
     it "should return the param hash returned by the block" do
0
       Merb::Router.prepare do
0
         match("/deferred").defer_to do |request, params|
0
-          route :hello => "world"
0
+          :hello => "world"
0
         end
0
       end
0
 
0
@@ -32,7 +32,7 @@ describe "Recognizing requests for deferred routes" do
0
     it "should accept params" do
0
       Merb::Router.prepare do
0
         match("/").defer_to(:controller => "accounts") do |request, params|
0
-          route params.update(:action => "hello")
0
+          params.update(:action => "hello")
0
         end
0
       end
0
 
0
@@ -42,7 +42,7 @@ describe "Recognizing requests for deferred routes" do
0
     it "should be able to define routes after the deferred route" do
0
       Merb::Router.prepare do
0
         match("/deferred").defer_to do
0
-          route :hello => "world"
0
+          :hello => "world"
0
         end
0
 
0
         match("/").to(:foo => "bar")

Comments