Permalink
Browse files

Match tests with new reloading behaviour

  • Loading branch information...
1 parent bc2c4a4 commit 6a50d6c8e39bcc25df3d93226006b4523f8a2cb6 @NZKoz NZKoz committed Jul 8, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/test/controller/dispatcher_test.rb
View
3 actionpack/test/controller/dispatcher_test.rb
@@ -25,7 +25,8 @@ def teardown
def test_clears_dependencies_after_dispatch_if_in_loading_mode
ActiveSupport::Dependencies.expects(:clear).once
- dispatch(false)
+ # Close the response so dependencies kicks in
+ dispatch(false).last.close
end
def test_reloads_routes_before_dispatch_if_in_loading_mode

0 comments on commit 6a50d6c

Please sign in to comment.