public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/ddollar/rails.git
Search Repo:
Stub out Dispatcher#log_failsafe_exception method to please the test gods.
josh (author)
Tue Apr 15 16:04:12 -0700 2008
commit  745359a49452da34978724144eaa318b8a363e08
tree    98589a0ace6838429d311e204056eda0a8b37cb7
parent  93641f30b7b2b330b28feb8d0bd49d736af3d7e9
...
37
38
39
 
 
 
 
 
40
41
42
43
44
 
45
46
47
...
37
38
39
40
41
42
43
44
45
46
 
 
 
47
48
49
50
0
@@ -37,11 +37,14 @@
0
     dispatch
0
   end
0
 
0
+ # Stub out dispatch error logger
0
+ class << Dispatcher
0
+ def log_failsafe_exception(status, exception); end
0
+ end
0
+
0
   def test_failsafe_response
0
     CGI.expects(:new).raises('some multipart parsing failure')
0
-
0
- ActionController::Routing::Routes.stubs(:reload)
0
- Dispatcher.any_instance.stubs(:log_failsafe_exception)
0
+ Dispatcher.expects(:log_failsafe_exception)
0
 
0
     assert_nothing_raised { dispatch }
0
 

Comments

    No one has commented yet.