Methods
T
Included Modules
Instance Public methods
test_absolute_pathed_layout()
# File actionview/test/actionpack/controller/layout_test.rb, line 223
def test_absolute_pathed_layout
  @controller = AbsolutePathLayoutController.new
  get :hello
  assert_equal "layout_test.erb hello.erb", @response.body.strip
end
test_layout_except_exception_when_excepted()
# File actionview/test/actionpack/controller/layout_test.rb, line 197
def test_layout_except_exception_when_excepted
  @controller = ExceptLayoutController.new
  get :goodbye
  assert_not_includes @response.body, 'item.erb'
end
test_layout_except_exception_when_included()
# File actionview/test/actionpack/controller/layout_test.rb, line 191
def test_layout_except_exception_when_included
  @controller = ExceptLayoutController.new
  get :hello
  assert_includes @response.body, 'item.erb'
end
test_layout_is_not_set_when_none_rendered()
# File actionview/test/actionpack/controller/layout_test.rb, line 211
def test_layout_is_not_set_when_none_rendered
  @controller = RendersNoLayoutController.new
  get :hello
  assert_equal 'hello.erb', @response.body
end
test_layout_is_picked_from_the_controller_instances_view_path()
# File actionview/test/actionpack/controller/layout_test.rb, line 217
def test_layout_is_picked_from_the_controller_instances_view_path
  @controller = PrependsViewPathController.new
  get :hello
  assert_includes @response.body, 'alt.erb'
end
test_layout_only_exception_when_excepted()
# File actionview/test/actionpack/controller/layout_test.rb, line 185
def test_layout_only_exception_when_excepted
  @controller = OnlyLayoutController.new
  get :goodbye
  assert_not_includes @response.body, 'item.erb'
end
test_layout_only_exception_when_included()
# File actionview/test/actionpack/controller/layout_test.rb, line 179
def test_layout_only_exception_when_included
  @controller = OnlyLayoutController.new
  get :hello
  assert_includes @response.body, 'item.erb'
end
test_layout_proc_set_in_controller_returning_nil_falls_back_to_default()
# File actionview/test/actionpack/controller/layout_test.rb, line 173
def test_layout_proc_set_in_controller_returning_nil_falls_back_to_default
  @controller = HasNilLayoutProc.new
  get :hello
  assert_includes @response.body, 'layout_test.erb'
end
test_layout_set_when_set_in_controller()
# File actionview/test/actionpack/controller/layout_test.rb, line 161
def test_layout_set_when_set_in_controller
  @controller = HasOwnLayoutController.new
  get :hello
  assert_includes @response.body, 'item.erb'
end
test_layout_set_when_using_default_layout()
# File actionview/test/actionpack/controller/layout_test.rb, line 149
def test_layout_set_when_using_default_layout
  @controller = DefaultLayoutController.new
  get :hello
  assert_includes @response.body, 'layout_test.erb'
end
test_layout_set_when_using_render()
# File actionview/test/actionpack/controller/layout_test.rb, line 203
def test_layout_set_when_using_render
  with_template_handler :mab, lambda { |template| template.source.inspect } do
    @controller = SetsLayoutInRenderController.new
    get :hello
    assert_includes @response.body, 'layouts/third_party_template_library.mab'
  end
end
test_layout_set_when_using_streaming_layout()
# File actionview/test/actionpack/controller/layout_test.rb, line 155
def test_layout_set_when_using_streaming_layout
  @controller = StreamingLayoutController.new
  get :hello
  assert_includes @response.body, 'layout_test.erb'
end
test_layout_symbol_set_in_controller_returning_nil_falls_back_to_default()
# File actionview/test/actionpack/controller/layout_test.rb, line 167
def test_layout_symbol_set_in_controller_returning_nil_falls_back_to_default
  @controller = HasNilLayoutSymbol.new
  get :hello
  assert_includes @response.body, 'layout_test.erb'
end