Methods
T
Included Modules
Instance Public methods
test_absolute_pathed_layout()
# File actionpack/test/controller/layout_test.rb, line 189
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 actionpack/test/controller/layout_test.rb, line 165
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 actionpack/test/controller/layout_test.rb, line 159
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 actionpack/test/controller/layout_test.rb, line 177
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 actionpack/test/controller/layout_test.rb, line 183
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 actionpack/test/controller/layout_test.rb, line 153
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 actionpack/test/controller/layout_test.rb, line 147
def test_layout_only_exception_when_included
  @controller = OnlyLayoutController.new
  get :hello
  assert_template :layout => "layouts/item"
end
test_layout_set_when_set_in_controller()
# File actionpack/test/controller/layout_test.rb, line 141
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 actionpack/test/controller/layout_test.rb, line 127
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 actionpack/test/controller/layout_test.rb, line 171
def test_layout_set_when_using_render
  @controller = SetsLayoutInRenderController.new
  get :hello
  assert_template :layout => "layouts/third_party_template_library"
end
test_layout_set_when_using_streaming_layout()
# File actionpack/test/controller/layout_test.rb, line 134
def test_layout_set_when_using_streaming_layout
  @controller = StreamingLayoutController.new
  get :hello
  assert_template :hello
end