RJS doesn't render with an HTML layout by default
This commit is contained in:
parent
4fad953f90
commit
487312515c
|
@ -124,6 +124,7 @@ module ActionController
|
|||
super
|
||||
rescue ActionView::MissingTemplate
|
||||
_find_by_parts(_layout({}), {})
|
||||
nil
|
||||
end
|
||||
|
||||
def performed?
|
||||
|
|
|
@ -375,11 +375,9 @@ class MimeControllerTest < ActionController::TestCase
|
|||
end
|
||||
|
||||
def test_rjs_type_skips_layout
|
||||
pending(:new_base) do
|
||||
@request.accept = "text/javascript"
|
||||
get :all_types_with_layout
|
||||
assert_equal 'RJS for all_types_with_layout', @response.body
|
||||
end
|
||||
@request.accept = "text/javascript"
|
||||
get :all_types_with_layout
|
||||
assert_equal 'RJS for all_types_with_layout', @response.body
|
||||
end
|
||||
|
||||
def test_html_type_with_layout
|
||||
|
|
Loading…
Reference in New Issue