Permalink
Browse files

Put test in place for deprecated dispatcher

  • Loading branch information...
1 parent 635aa91 commit 444ba150bd344793ebd0bd5efa6efd93fee89a7c @josh josh committed Oct 5, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 railties/test/application/load_test.rb
@@ -43,6 +43,13 @@ def setup
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

0 comments on commit 444ba15

Please sign in to comment.