aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-12-22 19:03:01 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-12-22 19:03:01 +0000
commitfa906778ffdc22671cca11b5db1bf80cc44d9468 (patch)
treedb8f905fc5611be65cb1716603e46b98f67dee42 /actionpack
parentc64a29f6f1e7e7d95193862ab571e2b03f648b34 (diff)
downloadrails-fa906778ffdc22671cca11b5db1bf80cc44d9468.tar.gz
rails-fa906778ffdc22671cca11b5db1bf80cc44d9468.tar.bz2
rails-fa906778ffdc22671cca11b5db1bf80cc44d9468.zip
Integration tests use ActionController::Dispatcher rather than the old Dispatcher. Closes #10596.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8483 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/integration.rb5
-rw-r--r--actionpack/test/controller/integration_test.rb1
2 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/integration.rb b/actionpack/lib/action_controller/integration.rb
index 25fb1b93af..d979ca494d 100644
--- a/actionpack/lib/action_controller/integration.rb
+++ b/actionpack/lib/action_controller/integration.rb
@@ -1,6 +1,7 @@
-require 'dispatcher'
require 'stringio'
require 'uri'
+
+require 'action_controller/dispatcher'
require 'action_controller/test_process'
module ActionController
@@ -276,7 +277,7 @@ module ActionController
ActionController::Base.clear_last_instantiation!
cgi = StubCGI.new(env, data)
- Dispatcher.dispatch(cgi, ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS, cgi.stdoutput)
+ ActionController::Dispatcher.dispatch(cgi, ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS, cgi.stdoutput)
@result = cgi.stdoutput.string
@request_count += 1
diff --git a/actionpack/test/controller/integration_test.rb b/actionpack/test/controller/integration_test.rb
index 4213bb4afa..2aea6eaaaa 100644
--- a/actionpack/test/controller/integration_test.rb
+++ b/actionpack/test/controller/integration_test.rb
@@ -1,6 +1,5 @@
require File.dirname(__FILE__) + '/../abstract_unit'
-$:.unshift File.dirname(__FILE__) + '/../../../railties/lib'
require 'action_controller/integration'
uses_mocha 'integration' do