Class: Test::Spec::Rails::Layout

Inherits:
SpecResponder show all
Defined in:
lib/test/spec/rails/response_helpers.rb

Instance Attribute Summary

Attributes inherited from SpecResponder

#test_case

Instance Method Summary collapse

Methods inherited from SpecResponder

#initialize

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, message=nil)
  rendered_layout = @test_case.response.layout.gsub(/layouts\//, '')
  @test_case.send(:assert_equal, layout, rendered_layout, message)
end