Jason LaPier
2007-Dec-20 18:40 UTC
[Backgroundrb-devel] mocking a few things in the test helper
When using the provided bdrb_test_helper, I was getting some undefined methods (register_status, thread_pool, etc) in unit tests. The README says to go ahead and stub out methods that need it, and send the patch to the list, so here it is (attached). Also, the MetaWorker initialize method was written as "initializes", causing the @logger never to be set, causing undefined method errors reported as nil.info and nil.debug (nil being the ''logger'' method). - Jason L. -- My Rails and Linux Blog: http://offtheline.net -------------- next part -------------- A non-text attachment was scrubbed... Name: bdrb_test_helper.patch Type: text/x-patch Size: 870 bytes Desc: not available Url : http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20071220/37db8910/attachment.bin
hemant kumar
2007-Dec-20 19:05 UTC
[Backgroundrb-devel] mocking a few things in the test helper
Hi Jason, On Thu, 2007-12-20 at 10:40 -0800, Jason LaPier wrote:> When using the provided bdrb_test_helper, I was getting some undefined > methods (register_status, thread_pool, etc) in unit tests. The README > says to go ahead and stub out methods that need it, and send the patch > to the list, so here it is (attached). Also, the MetaWorker initialize > method was written as "initializes", causing the @logger never to be > set, causing undefined method errors reported as nil.info and > nil.debug (nil being the ''logger'' method). > > - Jason L. >Thanks buddy. I would merge them asap. -- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org