I’m working through Ola B.'s book but I’m using jruby 1.1.2 and Rails
2.0.2 (not sure if this should go in the Rails forum or not)
When I try to run the simplest tests it finishes in 0.0010 seconds and
claims to have run 0 tests.
It appears to find the unit test files but doesn’t run the tests. Does
anyone know where I should be looking for the answer here? Is this an
indication that my code it wrong or that my config is wrong?
Here is the trace:
jruby -S rake --trace
(in /Users/rosey/Projects/Ruby/shoplet)
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:clone (first_time)
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:clone
** Invoke db:schema:load (first_time)
** Invoke environment
** Execute db:schema:load
** Execute test:units
/usr/local/ruby/jruby-1.1.2/bin/jruby -Ilib:test
“/usr/local/ruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb”
“test/unit/product_category_test.rb” “test/unit/product_test.rb”
“test/unit/product_type_test.rb”
JRuby limited openssl loaded. gem install jruby-openssl for full
support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
Loaded suite
/usr/local/ruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader
Started
Finished in 0.0010 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
** Invoke test:functionals (first_time)
** Invoke db:test:prepare
** Execute test:functionals
/usr/local/ruby/jruby-1.1.2/bin/jruby -Ilib:test
“/usr/local/ruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb”
** Invoke test:integration (first_time)
** Invoke db:test:prepare
** Execute test:integration
/usr/local/ruby/jruby-1.1.2/bin/jruby -Ilib:test
“/usr/local/ruby/jruby-1.1.2/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb”
** Execute default