[Backgroundrb-devel] backgroundrb and autotest

James Hughes hughes.james at gmail.com
Tue Jul 18 14:51:27 EDT 2006


First, thanks for the plugin. Sorry if this is not strictly a
backgroundrb issue but I thought others on this list might have come
across this problem.

I'm trying to run the test that comes via the worker generator.  The
test works fine when running 'rake test_functional', but when the
tests are run by autotest I get "uninitialized constant BackgrounDRb"
(full stack trace below). I notice that BackgrounDRb::Rails is defined
in "script/lib", is this a non-standard location that autotest somehow
bypasses? I'm totally clueless as to how Rails loads plugins, so if
anyone else has seen this issue, help appreciated.

The stack trace:

`const_missing': uninitialized constant BackgrounDRb (NameError)
	from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in
	from /home/jhughes/work/project-tracker-rails/trunk/config/../lib/workers/task_checker_worker.rb:5
	from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
	from ./test/unit/task_checker_worker_test.rb:2
	from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in
	from -e:1
	from -e:1
`unit_diff': undefined method `first' for nil:NilClass (NoMethodError)
	from /usr/lib/ruby/gems/1.8/gems/ZenTest-3.2.0/lib/unit_diff.rb:84:in
	from /usr/lib/ruby/gems/1.8/gems/ZenTest-3.2.0/bin/unit_diff:38
	from /usr/bin/unit_diff:18

James Hughes
Web application developer
Vancouver, BC

"Developing a coherent political analysis is in many respects
contingent upon an ability to connect one context to another, a
process not dissimilar to playing the kid's game of dot-to-dot."
 - Ward Churchill, from '"A Government of Laws"?'

More information about the Backgroundrb-devel mailing list