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
76 77 78 79 80 |
# File 'lib/rspec_on_rails.rb', line 76 def should_render(expected=nil) expected = expected.to_s unless expected.nil? rendered = expected ? rendered_file(!expected.include?('/')) : rendered_file expected.should_equal rendered end |