aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/mocks
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-09-23 02:11:44 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-09-23 02:11:44 +0000
commit3dea8b580b9c67bb27c01290fb3b17f446544b78 (patch)
tree6d0bdda03df500643b4d3f086866855a04e8a93c /railties/test/mocks
parentea456801182195b113e695ec9019757ce523be0f (diff)
downloadrails-3dea8b580b9c67bb27c01290fb3b17f446544b78.tar.gz
rails-3dea8b580b9c67bb27c01290fb3b17f446544b78.tar.bz2
rails-3dea8b580b9c67bb27c01290fb3b17f446544b78.zip
Dispatcher tests. References #9630.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7591 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/test/mocks')
-rw-r--r--railties/test/mocks/dispatcher.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/railties/test/mocks/dispatcher.rb b/railties/test/mocks/dispatcher.rb
deleted file mode 100644
index 3391f398bf..0000000000
--- a/railties/test/mocks/dispatcher.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-class Dispatcher
- class <<self
- attr_accessor :time_to_sleep
- attr_accessor :raise_exception
- attr_accessor :dispatch_hook
-
- def dispatch(cgi, session_options = nil, output = $stdout)
- dispatch_hook.call(cgi) if dispatch_hook
- sleep(time_to_sleep || 0)
- raise raise_exception, "Something died" if raise_exception
- end
- end
-end