File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
actionpack/test/controller Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -724,6 +724,14 @@ def determine_layout
724
724
end
725
725
end
726
726
727
+ class MetalTestController < ActionController ::Metal
728
+ include ActionController ::Rendering
729
+
730
+ def accessing_logger_in_template
731
+ render :inline => "<%= logger.class %>"
732
+ end
733
+ end
734
+
727
735
class RenderTest < ActionController ::TestCase
728
736
tests TestController
729
737
@@ -1605,3 +1613,12 @@ def test_last_modified_works_with_less_than_too
1605
1613
assert_response :success
1606
1614
end
1607
1615
end
1616
+
1617
+ class MetalRenderTest < ActionController ::TestCase
1618
+ tests MetalTestController
1619
+
1620
+ def test_access_to_logger_in_view
1621
+ get :accessing_logger_in_template
1622
+ assert_equal "NilClass" , @response . body
1623
+ end
1624
+ end
You can’t perform that action at this time.
0 commit comments