search for: query_backup

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

2007 Sep 05
2
how to test timeouts? that #returns deprecation again...
...out the code and see if anyone has a better way to test this with Mocha (or otherwise). Here is some simplified code showing the example: class FileSpace < ActiveRecord::Base def dsmc # remove command line wrapper object - this is basically a call that _could_ stall out end def self.query_backup_timeout 15.seconds end # query backup may hang things, so we have to wrap it in a timeout def query_backup_from_tsm Timeout::timeout(self.class.query_backup_timeout) do dsmc.parse_query_backup(dsmc.query_backup) end end end the corresponding spec: describe "File Sp...