public
Rubygem
Description: RSpec's official Ruby on Rails plugin
Clone URL: git://github.com/dchelimsky/rspec-rails.git
Patch from Matt Peterson to add failing example for 
http://rspec.lighthouseapp.com/projects/5645/tickets/440.
David Chelimsky (author)
Tue Jul 15 21:50:34 -0700 2008
commit  557a2cef32895bd4b3ca5c5da0d41dba0f02c849
tree    555e9975f56e5f43c42337a47179d0b17a21e49c
parent  9a1e10e7b71f7e8e4fb910a9695ee69abec63816
...
5
6
7
8
 
9
10
11
...
213
214
215
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
217
218
...
5
6
7
 
8
9
10
11
...
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
0
@@ -5,7 +5,7 @@ require 'controller_spec_controller'
0
   describe "A controller example running in #{mode} mode", :type => :controller do
0
     controller_name :controller_spec
0
     integrate_views if mode == 'integration'
0
-
0
+
0
     it "should provide controller.session as session" do
0
       get 'action_with_template'
0
       session.should equal(controller.session)
0
@@ -213,6 +213,21 @@ require 'controller_spec_controller'
0
   
0
 end
0
 
0
+['integration', 'isolation'].each do |mode|
0
+ describe "A controller example running in #{mode} mode", :type => :controller do
0
+ controller_name :controller_inheriting_from_application_controller
0
+ integrate_views if mode == 'integration'
0
+
0
+ it "should only have a before filter inherited from ApplicationController run once..." do
0
+ pending("fix to http://rspec.lighthouseapp.com/projects/5645/tickets/440")
0
+
0
+ controller.should_receive(:i_should_only_be_run_once).once
0
+ get :action_with_inherited_before_filter
0
+ end
0
+ end
0
+end
0
+
0
+
0
 describe ControllerSpecController, :type => :controller do
0
   it "should not require naming the controller if describe is passed a type" do
0
   end
...
88
89
90
 
 
 
 
 
91
...
88
89
90
91
92
93
94
95
96
0
@@ -88,3 +88,8 @@ class ControllerSpecController < ActionController::Base
0
   end
0
 end
0
 
0
+class ControllerInheritingFromApplicationControllerController < ApplicationController
0
+ def action_with_ac_base_before_filter_checking_multi_require_bug
0
+ render :text => ""
0
+ end
0
+end
0
\ No newline at end of file

Comments

    No one has commented yet.