GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
test paths delegation in response_mixin
automatthew (author)
Tue Jul 29 10:24:47 -0700 2008
commit  03a35fa0e49fb5599e2e0027ec92aac08eca7d0a
tree    7264441567567ba81493961fa0cd883af42f3aec
parent  e4b77ecd17a9ed1501057b839d6280e2d51fbeb6
...
13
14
15
16
 
17
18
19
...
13
14
15
 
16
17
18
19
0
@@ -13,7 +13,7 @@ module Waves
0
       end
0
       
0
       def root_constant
0
- eval( "::#{self.rootname}" )
0
+ eval( "::#{self.rootname}" )
0
       end
0
 
0
       # Just a convenience method for accessing a const within a Module
...
49
50
51
 
 
 
 
 
52
53
54
...
49
50
51
52
53
54
55
56
57
58
59
0
@@ -49,6 +49,11 @@ describe "The ResponseMixin module" do
0
     end
0
   end
0
   
0
+ it "defines a delegator for the application's paths" do
0
+ Thingy.should.receive(:paths).with(:meek)
0
+ @thingy.paths(:meek)
0
+ end
0
+
0
   it "defines a redirect method with default status code" do
0
     @thingy.request.should.receive(:redirect).with('/elsewhere', 301)
0
     @thingy.redirect("/elsewhere", 301)

Comments

    No one has commented yet.