Class: ActionController::TestResponse
- Inherits:
-
Object
- Object
- ActionController::TestResponse
- Defined in:
- lib/rspec_on_rails.rb
Instance Method Summary collapse
Instance Method Details
#should_render(expected = nil) ⇒ Object
70 71 72 73 |
# File 'lib/rspec_on_rails.rb', line 70 def should_render(expected=nil) rendered = expected ? rendered_file(!expected.include?('/')) : rendered_file expected.should_equal rendered end |