Method: Shoulda::ActionController::Matchers::RenderWithLayout#initialize
- Defined in:
- lib/shoulda/action_controller/matchers/render_with_layout_matcher.rb
#initialize(layout) ⇒ RenderWithLayout
Returns a new instance of RenderWithLayout.
18 19 20 |
# File 'lib/shoulda/action_controller/matchers/render_with_layout_matcher.rb', line 18 def initialize(layout) @layout = layout.to_s unless layout.nil? end |