Methods
T
Included Modules
Instance Public methods
test_absolute_pathed_layout()
# File actionview/test/actionpack/controller/layout_test.rb, line 224
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 198
def test_layout_except_exception_when_excepted
  @controller = ExceptLayoutController.new
  get :goodbye
  assert !@response.body.include?("item.erb"), "#{@response.body.inspect} included 'item.erb'"
end
test_layout_except_exception_when_included()
# File actionview/test/actionpack/controller/layout_test.rb, line 192
def test_layout_except_exception_when_included
  @controller = ExceptLayoutController.new
  get :hello
  assert_template :layout => "layouts/item"
end
test_layout_is_not_set_when_none_rendered()
# File actionview/test/actionpack/controller/layout_test.rb, line 212
def test_layout_is_not_set_when_none_rendered
  @controller = RendersNoLayoutController.new
  get :hello
  assert_template :layout => nil
end
test_layout_is_picked_from_the_controller_instances_view_path()
# File actionview/test/actionpack/controller/layout_test.rb, line 218
def test_layout_is_picked_from_the_controller_instances_view_path
  @controller = PrependsViewPathController.new
  get :hello
  assert_template :layout => /layouts\/alt/
end
test_layout_only_exception_when_excepted()
# File actionview/test/actionpack/controller/layout_test.rb, line 186
def test_layout_only_exception_when_excepted
  @controller = OnlyLayoutController.new
  get :goodbye
  assert !@response.body.include?("item.erb"), "#{@response.body.inspect} included 'item.erb'"
end
test_layout_only_exception_when_included()
# File actionview/test/actionpack/controller/layout_test.rb, line 180
def test_layout_only_exception_when_included
  @controller = OnlyLayoutController.new
  get :hello
  assert_template :layout => "layouts/item"
end
test_layout_proc_set_in_controller_returning_nil_falls_back_to_default()
# File actionview/test/actionpack/controller/layout_test.rb, line 174
def test_layout_proc_set_in_controller_returning_nil_falls_back_to_default
  @controller = HasNilLayoutProc.new
  get :hello
  assert_template layout: "layouts/layout_test"
end
test_layout_set_when_set_in_controller()
# File actionview/test/actionpack/controller/layout_test.rb, line 162
def test_layout_set_when_set_in_controller
  @controller = HasOwnLayoutController.new
  get :hello
  assert_template :layout => "layouts/item"
end
test_layout_set_when_using_default_layout()
# File actionview/test/actionpack/controller/layout_test.rb, line 150
def test_layout_set_when_using_default_layout
  @controller = DefaultLayoutController.new
  get :hello
  assert_template :layout => "layouts/layout_test"
end
test_layout_set_when_using_render()
# File actionview/test/actionpack/controller/layout_test.rb, line 204
def test_layout_set_when_using_render
  with_template_handler :mab, lambda { |template| template.source.inspect } do
    @controller = SetsLayoutInRenderController.new
    get :hello
    assert_template :layout => "layouts/third_party_template_library"
  end
end
test_layout_set_when_using_streaming_layout()
# File actionview/test/actionpack/controller/layout_test.rb, line 156
def test_layout_set_when_using_streaming_layout
  @controller = StreamingLayoutController.new
  get :hello
  assert_template :hello
end
test_layout_symbol_set_in_controller_returning_nil_falls_back_to_default()
# File actionview/test/actionpack/controller/layout_test.rb, line 168
def test_layout_symbol_set_in_controller_returning_nil_falls_back_to_default
  @controller = HasNilLayoutSymbol.new
  get :hello
  assert_template layout: "layouts/layout_test"
end