Merge pull request #5484 from luke-gru/consistent_module_naming

use consistent explicit module inclusion
This commit is contained in:
Xavier Noria 2012-03-16 19:02:02 -07:00
commit 92563722da
3 changed files with 6 additions and 6 deletions

@ -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
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