Permalink
Browse files

Ensure integration test is load in script/console [#1452 state:resolved]

  • Loading branch information...
1 parent 42b4407 commit 5ffd1e0c02e605158efc08f3cbb6aebb79978553 @josh josh committed Nov 24, 2008
@@ -53,6 +53,7 @@ def self.load_all!
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 @@ def self.load_all!
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
@@ -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
@@ -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=)

0 comments on commit 5ffd1e0

Please sign in to comment.