Skip to content

Commit

Permalink
spec_server properly cleans up after itself with Rails 2.3
Browse files Browse the repository at this point in the history
[#759 state:resolved milestone:'Next Release']
  • Loading branch information
dchelimsky committed Apr 26, 2009
1 parent 6a9500c commit 2eedcf4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/spec/rails/spec_server.rb
Expand Up @@ -102,7 +102,12 @@ def run(argv, stderr, stdout)
)
)

dispatcher.cleanup_application if dispatcher.respond_to?(:cleanup_application)
if ::ActionController::Dispatcher.respond_to?(:cleanup_application)
::ActionController::Dispatcher.cleanup_application
else
dispatcher.cleanup_application
end

end

def in_memory_database?
Expand Down

0 comments on commit 2eedcf4

Please sign in to comment.