Put test in place for deprecated dispatcher

This commit is contained in:
Joshua Peek
2009-10-05 09:42:35 -05:00
parent 635aa91224
commit 444ba150bd

View File

@@ -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