[Backgroundrb-devel] Testing

Ezra Zygmuntowicz ezmobius at gmail.com
Mon Oct 30 15:52:21 EST 2006


Hey Joshua-

	Sorry about that. I forgot to commit one require statement in the  
tests. please svn up and run again. also note that most of the tests  
are now specs. so also run rake specs

Cheers-
-Ezra

On Oct 30, 2006, at 12:21 PM, Joshua Warchol wrote:

> 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/
>
> _______________________________________________
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/backgroundrb-devel

-- Ezra Zygmuntowicz 
-- Lead Rails Evangelist
-- ez at engineyard.com
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)




More information about the Backgroundrb-devel mailing list