Class: Test::Spec::Rails::Layout
- Inherits:
-
SpecResponder
- Object
- SpecResponder
- Test::Spec::Rails::Layout
- Defined in:
- lib/test/spec/rails/response_helpers.rb
Instance Attribute Summary
Attributes inherited from SpecResponder
Instance Method Summary collapse
Methods inherited from SpecResponder
Constructor Details
This class inherits a constructor from Test::Spec::Rails::SpecResponder
Instance Method Details
#should_equal(layout, message = nil) ⇒ Object
15 16 17 18 |
# File 'lib/test/spec/rails/response_helpers.rb', line 15 def should_equal(layout, =nil) rendered_layout = @test_case.response.layout.gsub(/layouts\//, '') @test_case.send(:assert_equal, layout, rendered_layout, ) end |