# File lib/shoulda/action_controller/macros.rb, line 172 172: def should_render_with_layout(expected_layout = 'application') 173: matcher = render_with_layout(expected_layout) 174: if expected_layout 175: should matcher.description do 176: assert_accepts matcher, @controller 177: end 178: else 179: should "render without layout" do 180: assert_rejects matcher, @controller 181: end 182: end 183: end