public
Rubygem
Description: RSpec extension library for Ruby on Rails
Homepage:
Clone URL: git://github.com/dchelimsky/rspec-rails.git
don't call super from render unless integrating views
David Chelimsky (author)
Sat Aug 23 13:34:35 -0700 2008
commit  95ad614951ab8540b25453f5135ad46e106986ba
tree    cbf61d44810bc5a0f2229d39a695d44617bf844c
parent  416adcb071c1aec966e16a50db8f2df56c0d0521
...
207
208
209
210
211
 
 
 
 
212
213
214
...
207
208
209
 
 
210
211
212
213
214
215
216
0
@@ -207,8 +207,10 @@ module Spec
0
               expect_render_mock_proxy.render(options, &block)
0
               @performed_render = true
0
             else
0
-              unless matching_stub_exists(options)
0
-                super(options, deprecated_status_or_extra_options, &block)
0
+              if integrate_views?
0
+                unless matching_stub_exists(options)
0
+                  super(options, deprecated_status_or_extra_options, &block)
0
+                end
0
               end
0
             end
0
           end

Comments