提交 08c4d8ea 编写于 作者: L Luke Gruber

use consistent explicit module inclusion

aid ease of understanding and readability for tests
上级 facf1e54
......@@ -29,7 +29,7 @@ class TestBasic < ActiveSupport::TestCase
# Test Render mixin
# ====
class RenderingController < AbstractController::Base
include ::AbstractController::Rendering
include AbstractController::Rendering
def _prefixes
[]
......@@ -153,7 +153,7 @@ def setup
# ====
# self._layout is used when defined
class WithLayouts < PrefixedViews
include Layouts
include AbstractController::Layouts
private
def self.layout(formats)
......
......@@ -3,7 +3,7 @@
module AbstractController
module Testing
class MyCollector
include Collector
include AbstractController::Collector
attr_accessor :responses
def initialize
......@@ -54,4 +54,4 @@ class TestCollector < ActiveSupport::TestCase
end
end
end
end
\ No newline at end of file
end
......@@ -7,7 +7,7 @@ module Testing
class ControllerWithHelpers < AbstractController::Base
include AbstractController::Rendering
include Helpers
include AbstractController::Helpers
def with_module
render :inline => "Module <%= included_method %>"
......@@ -44,7 +44,7 @@ class ::HelperyTestController < AbstractHelpers
class AbstractHelpersBlock < ControllerWithHelpers
helper do
include ::AbstractController::Testing::HelperyTest
include AbstractController::Testing::HelperyTest
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册