Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use consistent explicit module inclusion

aid ease of understanding and readability for tests
  • Loading branch information...
commit 08c4d8eac302b8f9a6375b937586b79d208e756d 1 parent facf1e5
Luke Gruber luke-gru authored
4 actionpack/test/abstract/abstract_controller_test.rb
View
@@ -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)
4 actionpack/test/abstract/collector_test.rb
View
@@ -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
4 actionpack/test/abstract/helper_test.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.