diff options
author | Luke Gruber <luke.gru@gmail.com> | 2012-03-16 21:54:25 -0400 |
---|---|---|
committer | Luke Gruber <luke.gru@gmail.com> | 2012-03-16 21:54:25 -0400 |
commit | 08c4d8eac302b8f9a6375b937586b79d208e756d (patch) | |
tree | d5f1490e1bb985a4cb324b529e9549431fae7fb9 /actionpack | |
parent | facf1e54f1c9a6e6d82c7eab982f93b45336d2aa (diff) | |
download | rails-08c4d8eac302b8f9a6375b937586b79d208e756d.tar.gz rails-08c4d8eac302b8f9a6375b937586b79d208e756d.tar.bz2 rails-08c4d8eac302b8f9a6375b937586b79d208e756d.zip |
use consistent explicit module inclusion
aid ease of understanding and readability for tests
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/abstract/abstract_controller_test.rb | 4 | ||||
-rw-r--r-- | actionpack/test/abstract/collector_test.rb | 4 | ||||
-rw-r--r-- | actionpack/test/abstract/helper_test.rb | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/test/abstract/abstract_controller_test.rb b/actionpack/test/abstract/abstract_controller_test.rb index 30d6a7ae14..62f82a4c7a 100644 --- a/actionpack/test/abstract/abstract_controller_test.rb +++ b/actionpack/test/abstract/abstract_controller_test.rb @@ -29,7 +29,7 @@ module AbstractController # Test Render mixin # ==== class RenderingController < AbstractController::Base - include ::AbstractController::Rendering + include AbstractController::Rendering def _prefixes [] @@ -153,7 +153,7 @@ module AbstractController # ==== # self._layout is used when defined class WithLayouts < PrefixedViews - include Layouts + include AbstractController::Layouts private def self.layout(formats) diff --git a/actionpack/test/abstract/collector_test.rb b/actionpack/test/abstract/collector_test.rb index 2ebcebbbb7..c14d24905b 100644 --- a/actionpack/test/abstract/collector_test.rb +++ b/actionpack/test/abstract/collector_test.rb @@ -3,7 +3,7 @@ require 'abstract_unit' module AbstractController module Testing class MyCollector - include Collector + include AbstractController::Collector attr_accessor :responses def initialize @@ -54,4 +54,4 @@ module AbstractController end end end -end
\ No newline at end of file +end diff --git a/actionpack/test/abstract/helper_test.rb b/actionpack/test/abstract/helper_test.rb index b28a5b5afb..9a7445de7b 100644 --- a/actionpack/test/abstract/helper_test.rb +++ b/actionpack/test/abstract/helper_test.rb @@ -7,7 +7,7 @@ module AbstractController class ControllerWithHelpers < AbstractController::Base include AbstractController::Rendering - include Helpers + include AbstractController::Helpers def with_module render :inline => "Module <%= included_method %>" @@ -44,7 +44,7 @@ module AbstractController class AbstractHelpersBlock < ControllerWithHelpers helper do - include ::AbstractController::Testing::HelperyTest + include AbstractController::Testing::HelperyTest end end |