| Module | Spec::Rails::Example::RenderObserver |
| In: |
lib/spec/rails/example/render_observer.rb
|
Extends the should_receive, should_not_receive and stub! methods in rspec‘s mocking framework to handle render calls to controller in controller examples and template and view examples
FIXME - for some reason, neither alias nor alias_method are working as expected in the else branch, so this is a duplicate of stub() above. Could delegate, but then we‘d run into craziness handling :expected_from. This will have to do for the moment.