public
Description: response for lets you decorate your actions respond_to blocks
Homepage: http://blog.ardes.com/response_for
Clone URL: git://github.com/ianwhite/response_for.git
Click here to lend your support to: response_for and make a donation at www.pledgie.com !
Branching code in spec for different rails/rspec versions
ianwhite (author)
Thu Oct 09 16:32:14 -0700 2008
commit  b655450bed1f1b294f67a84ddb1e1faf440331bb
tree    81cbb9754da07d9d6b64e9300167bb8317b53085
parent  b0ce09d412744e5c89523192b1187828c891e24c
...
69
70
71
72
 
 
 
 
 
 
73
74
75
...
69
70
71
 
72
73
74
75
76
77
78
79
80
0
@@ -69,7 +69,12 @@ module InheritedControllerSpec
0
     
0
       it "should render :an_action" do
0
         get :an_action
0
-        response.should render_template('inherited_spec/super/an_action')
0
+        # different rails/rspec behaviour catered for
0
+        begin
0
+          response.should render_template('an_action')
0
+        rescue
0
+          response.should render_template('inherited_spec/super/an_action')
0
+        end
0
       end
0
     end
0
     

Comments