From a766a025e61c6ad43c113c7fbaca0adbb7841564 Mon Sep 17 00:00:00 2001 From: Timm Date: Tue, 24 Sep 2013 19:09:22 +0200 Subject: Moved ActionView::Assertions dependency from Action Pack's lib to abstract_unit.rb. --- actionpack/lib/action_controller/test_case.rb | 2 -- actionpack/lib/action_dispatch/testing/integration.rb | 3 +-- actionpack/test/abstract_unit.rb | 2 ++ 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 0a728aa7c0..e6695ffc90 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -2,7 +2,6 @@ require 'rack/session/abstract/id' require 'active_support/core_ext/object/to_query' require 'active_support/core_ext/module/anonymous' require 'active_support/core_ext/hash/keys' -require 'action_view/testing/assertions' module ActionController module TemplateAssertions @@ -674,7 +673,6 @@ module ActionController included do include ActionController::TemplateAssertions include ActionDispatch::Assertions - include ActionView::Assertions class_attribute :_controller_class setup :setup_controller_request_and_response end diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb index 96f12b95a9..af3bc26691 100644 --- a/actionpack/lib/action_dispatch/testing/integration.rb +++ b/actionpack/lib/action_dispatch/testing/integration.rb @@ -2,7 +2,6 @@ require 'stringio' require 'uri' require 'active_support/core_ext/kernel/singleton_class' require 'active_support/core_ext/object/try' -require 'action_view/testing/assertions' require 'rack/test' module ActionDispatch @@ -314,7 +313,7 @@ module ActionDispatch end module Runner - include ActionDispatch::Assertions, ActionView::Assertions + include ActionDispatch::Assertions def app @app ||= nil diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb index 6584d20840..686defab66 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -20,6 +20,7 @@ require 'abstract_controller' require 'action_controller' require 'action_view' require 'action_view/testing/resolvers' +require 'action_view/testing/assertions' require 'action_dispatch' require 'active_support/dependencies' require 'active_model' @@ -105,6 +106,7 @@ end module ActiveSupport class TestCase include ActionDispatch::DrawOnce + include ActionView::Assertions end end -- cgit v1.2.3