diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-11-24 09:58:52 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-11-24 09:58:52 -0600 |
commit | 5ffd1e0c02e605158efc08f3cbb6aebb79978553 (patch) | |
tree | 709110c0f0633f1e3aad5f6de0899c46d83b21be | |
parent | 42b4407e35e8634370fb95dc6786d4fd0c0e6afa (diff) | |
download | rails-5ffd1e0c02e605158efc08f3cbb6aebb79978553.tar.gz rails-5ffd1e0c02e605158efc08f3cbb6aebb79978553.tar.bz2 rails-5ffd1e0c02e605158efc08f3cbb6aebb79978553.zip |
Ensure integration test is load in script/console [#1452 state:resolved]
-rw-r--r-- | actionpack/lib/action_controller.rb | 10 | ||||
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 1 | ||||
-rw-r--r-- | railties/lib/console_app.rb | 3 |
3 files changed, 12 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller.rb b/actionpack/lib/action_controller.rb index 5f87429aca..678938af86 100644 --- a/actionpack/lib/action_controller.rb +++ b/actionpack/lib/action_controller.rb @@ -53,6 +53,7 @@ module ActionController autoload :Flash, 'action_controller/flash' autoload :Helpers, 'action_controller/helpers' autoload :HttpAuthentication, 'action_controller/http_authentication' + autoload :Integration, 'action_controller/integration' autoload :IntegrationTest, 'action_controller/integration' autoload :Layout, 'action_controller/layout' autoload :MimeResponds, 'action_controller/mime_responds' @@ -74,6 +75,15 @@ module ActionController autoload :UrlWriter, 'action_controller/url_rewriter' autoload :Verification, 'action_controller/verification' + module Assertions + autoload :DomAssertions, 'action_controller/assertions/dom_assertions' + autoload :ModelAssertions, 'action_controller/assertions/model_assertions' + autoload :ResponseAssertions, 'action_controller/assertions/response_assertions' + autoload :RoutingAssertions, 'action_controller/assertions/routing_assertions' + autoload :SelectorAssertions, 'action_controller/assertions/selector_assertions' + autoload :TagAssertions, 'action_controller/assertions/tag_assertions' + end + module Http autoload :Headers, 'action_controller/headers' end diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index b925230118..79a8e1364d 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -107,7 +107,6 @@ module ActionController class TestCase < ActiveSupport::TestCase module Assertions %w(response selector tag dom routing model).each do |kind| - require "action_controller/assertions/#{kind}_assertions" include ActionController::Assertions.const_get("#{kind.camelize}Assertions") end diff --git a/railties/lib/console_app.rb b/railties/lib/console_app.rb index 88e7962b43..96bf3117c8 100644 --- a/railties/lib/console_app.rb +++ b/railties/lib/console_app.rb @@ -1,4 +1,5 @@ -require 'action_controller/integration' +require 'active_support/test_case' +require 'action_controller' # work around the at_exit hook in test/unit, which kills IRB Test::Unit.run = true if Test::Unit.respond_to?(:run=) |