[Backgroundrb-devel] [ANN] BackgrounDRb 1.0 pre-release available now
gethemant at gmail.com
Tue Dec 11 06:24:46 EST 2007
> At one point with the old version it was fairly straight-forward to
> test workers, but that broke at one point. Could you give any
> pointers writing tests for workers in the new version?
update your bdrb copy from svn and run rake backgroundrb:setup and you
should have a RAILS_ROOT/test/bdrb_test_helper.rb file.
Now, all your worker test cases can go in RAILS_ROOT/test/unit
directory, just make sure that you require bdrb_test_helper file, and
you can write test cases.
require File.join(File.dirname(__FILE__) + "/../bdrb_test_helper")
context "When god worker starts" do
god_worker = GodWorker.new
I hope this helps.
More information about the Backgroundrb-devel