aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-10-05 09:42:35 -0500
committerJoshua Peek <josh@joshpeek.com>2009-10-05 09:42:35 -0500
commit444ba150bd344793ebd0bd5efa6efd93fee89a7c (patch)
tree0a14e54e56c3570286da1a40b110407dc8f44863
parent635aa91224b5743c5736f916db18e80713650b86 (diff)
downloadrails-444ba150bd344793ebd0bd5efa6efd93fee89a7c.tar.gz
rails-444ba150bd344793ebd0bd5efa6efd93fee89a7c.tar.bz2
rails-444ba150bd344793ebd0bd5efa6efd93fee89a7c.zip
Put test in place for deprecated dispatcher
-rw-r--r--railties/test/application/load_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/application/load_test.rb b/railties/test/application/load_test.rb
index 5158abdbb4..305cd7f273 100644
--- a/railties/test/application/load_test.rb
+++ b/railties/test/application/load_test.rb
@@ -43,6 +43,13 @@ module ApplicationTests
assert Rails.application.new.is_a?(Rails::Application)
end
+ # Passenger still uses AC::Dispatcher, so we need to
+ # keep it working for now
+ test "deprecated ActionController::Dispatcher still works" do
+ rackup
+ assert ActionController::Dispatcher.new.is_a?(Rails::Application)
+ end
+
test "the config object is available on the application object" do
rackup
assert_equal 'UTC', Rails.application.config.time_zone