aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/mocks/dispatcher.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test/mocks/dispatcher.rb')
-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