[mocha-developer] how to test timeouts? that #returns deprecation again...

Duncan Beevers duncanbeevers at gmail.com
Wed Sep 5 18:03:43 EDT 2007


Would it be acceptable to just have the potentially long-running
method raise the Timeout::Error itself and allow the error to
percolate up out of Timeout::timeout?

file_space.dsmc.expects(:query_backup).raises(Timeout::Error, 'took too long')


More information about the mocha-developer mailing list