Methods
S
T
Included Modules
Instance Public methods
setup()
# File actionview/test/actionpack/controller/layout_test.rb, line 49
def setup
  super
  @request.host = "www.nextangle.com"
end
test_application_layout_is_default_when_no_controller_match()
# File actionview/test/actionpack/controller/layout_test.rb, line 54
def test_application_layout_is_default_when_no_controller_match
  @controller = ProductController.new
  get :hello
  assert_equal 'layout_test.erb hello.erb', @response.body
end
test_controller_name_layout_name_match()
# File actionview/test/actionpack/controller/layout_test.rb, line 60
def test_controller_name_layout_name_match
  @controller = ItemController.new
  get :hello
  assert_equal 'item.erb hello.erb', @response.body
end
test_namespaced_controllers_auto_detect_layouts1()
# File actionview/test/actionpack/controller/layout_test.rb, line 75
def test_namespaced_controllers_auto_detect_layouts1
  @controller = ControllerNameSpace::NestedController.new
  get :hello
  assert_equal 'controller_name_space/nested.erb hello.erb', @response.body
end
test_namespaced_controllers_auto_detect_layouts2()
# File actionview/test/actionpack/controller/layout_test.rb, line 81
def test_namespaced_controllers_auto_detect_layouts2
  @controller = MultipleExtensions.new
  get :hello
  assert_equal 'multiple_extensions.html.erb hello.erb', @response.body.strip
end
test_third_party_template_library_auto_discovers_layout()
# File actionview/test/actionpack/controller/layout_test.rb, line 66
def test_third_party_template_library_auto_discovers_layout
  with_template_handler :mab, lambda { |template| template.source.inspect } do
    @controller = ThirdPartyTemplateLibraryController.new
    get :hello
    assert_response :success
    assert_equal 'layouts/third_party_template_library.mab', @response.body
  end
end