[Backgroundrb-devel] Testing
Joshua Warchol
joshua at zaadz.com
Mon Oct 30 15:21:43 EST 2006
With the 0.2.0 code, unit testing of workers isn't working out of the box.
I created a bare rails project (dubbed "ninja") and generated one worker
"FirstWorker" and did rake test
rake test
(in /home/joshua/tmp/20061030-bdbtest/ninja)
/usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" "test/unit/first_worker_test.rb"
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing': uninitialized constant Worker (NameError)
from /home/joshua/tmp/20061030-bdbtest/ninja/config/../lib/workers/first_worker.rb:5
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
from ./test/unit/first_worker_test.rb:2
from /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb:5
from /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb:5
/usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb"
/usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb"
rake aborted!
Test failures
--
Joshua Warchol
Code Poet, Zaadz Inc.
http://joshua.zaadz.com/
More information about the Backgroundrb-devel
mailing list