Dan Herrera
2008-Jun-27 21:28 UTC
[Backgroundrb-devel] Tests failing when using ''reload_on_schedule true''
Hi All, When I add the line ''reload_on_schedule true'' to my worker, my tests will no longer run with the following exception: Starting ferret DRb server.../Users/revelation/projects/revelation-project/config/../lib/workers/alert_worker.rb:3: undefined method `reload_on_schedule'' for AlertWorker:Class (NoMethodError) class AlertWorker < BackgrounDRb::MetaWorker set_worker_name :alert_worker reload_on_schedule true ... end Anyone else seen this? Thanks! dan
gethemant at gmail.com
2008-Jun-28 04:32 UTC
[Backgroundrb-devel] Tests failing when using ''reload_on_schedule true''
Just open bdrb_test_helper.rb file from test directory and mock out the method. On 6/28/08, Dan Herrera <dan at revelationglobal.com> wrote:> Hi All, > > When I add the line ''reload_on_schedule true'' to my worker, my tests > will no longer run with the following exception: > > Starting ferret DRb > server.../Users/revelation/projects/revelation-project/config/../lib/workers/alert_worker.rb:3: > undefined method `reload_on_schedule'' for AlertWorker:Class > (NoMethodError) > > class AlertWorker < BackgrounDRb::MetaWorker > set_worker_name :alert_worker > reload_on_schedule true > > ... > end > > Anyone else seen this? > > Thanks! > > dan > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel >-- 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
Dan Herrera
2008-Jun-28 04:44 UTC
[Backgroundrb-devel] Tests failing when using ''reload_on_schedule true''
On Fri, Jun 27, 2008 at 9:32 PM, <gethemant at gmail.com> wrote:> Just open bdrb_test_helper.rb file from test directory and mock out the method.Excellent, thank you! dan> > On 6/28/08, Dan Herrera <dan at revelationglobal.com> wrote: >> Hi All, >> >> When I add the line ''reload_on_schedule true'' to my worker, my tests >> will no longer run with the following exception: >> >> Starting ferret DRb >> server.../Users/revelation/projects/revelation-project/config/../lib/workers/alert_worker.rb:3: >> undefined method `reload_on_schedule'' for AlertWorker:Class >> (NoMethodError) >> >> class AlertWorker < BackgrounDRb::MetaWorker >> set_worker_name :alert_worker >> reload_on_schedule true >> >> ... >> end >> >> Anyone else seen this? >> >> Thanks! >> >> dan >> _______________________________________________ >> Backgroundrb-devel mailing list >> Backgroundrb-devel at rubyforge.org >> http://rubyforge.org/mailman/listinfo/backgroundrb-devel >> > > > -- > 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 >