search for: timeoutmodul

Displaying 1 result from an estimated 1 matches for "timeoutmodul".

Did you mean: timeoutmodule
2007 Sep 05
2
how to test timeouts? that #returns deprecation again...
...-- in more complex examples I have specs making sure that the timeout error is logged, and that the error state gets saved to the database accordingly in the rescue clause. In other cases we used modules in our tests to override the real implementation in the singleton class (by doing dsmc.extend(TimeoutModule) for example), but thats a bit ugly and tiresome. Does anyone see a better way to do this? I really just want to say "I don''t care what this method normally does, just pretend that in this spec it takes n seconds long to complete to force a TimeoutError. thanks, Rob -- http://rob...