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 @@ -730,6 +730,14 @@ def determine_layout
730
730
end
731
731
end
732
732
733
+ class MetalTestController < ActionController ::Metal
734
+ include ActionController ::Rendering
735
+
736
+ def accessing_logger_in_template
737
+ render :inline => "<%= logger.class %>"
738
+ end
739
+ end
740
+
733
741
class RenderTest < ActionController ::TestCase
734
742
tests TestController
735
743
@@ -1617,3 +1625,12 @@ def test_last_modified_works_with_less_than_too
1617
1625
assert_response :success
1618
1626
end
1619
1627
end
1628
+
1629
+ class MetalRenderTest < ActionController ::TestCase
1630
+ tests MetalTestController
1631
+
1632
+ def test_access_to_logger_in_view
1633
+ get :accessing_logger_in_template
1634
+ assert_equal "NilClass" , @response . body
1635
+ end
1636
+ end
You can’t perform that action at this time.
0 commit comments