Method: Shoulda::ActionController::Matchers::RenderWithLayout#matches?

Defined in:
lib/shoulda/action_controller/matchers/render_with_layout_matcher.rb

#matches?(controller) ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
25
# File 'lib/shoulda/action_controller/matchers/render_with_layout_matcher.rb', line 22

def matches?(controller)
  @controller = controller
  rendered_with_layout? && rendered_with_expected_layout?
end