Rails 2.3.5
Upgrade to Rails 2.3.5. Also work around this bug: https://rails.lighthouseapp.com/projects/8994/tickets/3524 created by the aforementioned Rails release.
This commit is contained in:
parent
a6429f8c22
commit
e3832c6f79
187 changed files with 2316 additions and 891 deletions
|
@ -83,6 +83,11 @@ class AbsolutePathLayoutController < LayoutTest
|
|||
layout File.expand_path(File.expand_path(__FILE__) + '/../../fixtures/layout_tests/layouts/layout_test.rhtml')
|
||||
end
|
||||
|
||||
class AbsolutePathWithoutLayoutsController < LayoutTest
|
||||
# Absolute layout path without 'layouts' in it.
|
||||
layout File.expand_path(File.expand_path(__FILE__) + '/../../fixtures/layout_tests/abs_path_layout.rhtml')
|
||||
end
|
||||
|
||||
class HasOwnLayoutController < LayoutTest
|
||||
layout 'item'
|
||||
end
|
||||
|
@ -153,6 +158,12 @@ class LayoutSetInResponseTest < ActionController::TestCase
|
|||
get :hello
|
||||
assert_equal "layout_test.rhtml hello.rhtml", @response.body.strip
|
||||
end
|
||||
|
||||
def test_absolute_pathed_layout_without_layouts_in_path
|
||||
@controller = AbsolutePathWithoutLayoutsController.new
|
||||
get :hello
|
||||
assert_equal "abs_path_layout.rhtml hello.rhtml", @response.body.strip
|
||||
end
|
||||
end
|
||||
|
||||
class RenderWithTemplateOptionController < LayoutTest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue