Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6RC2
-
Fix Version/s: JRuby 1.6RC3
-
Component/s: None
-
Labels:None
-
Environment:HideUsing ruby 1.9 mode !!
Ubuntu 10.04 LTS
2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.5) (6b20-1.9.5-0ubuntu1~10.04.1)
OpenJDK Server VM (build 19.0-b09, mixed mode)ShowUsing ruby 1.9 mode !! Ubuntu 10.04 LTS 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.5) (6b20-1.9.5-0ubuntu1~10.04.1) OpenJDK Server VM (build 19.0-b09, mixed mode)
-
Number of attachments :
Description
When using "shoulda" gem on Rails 3.0.5 tests are not executed by rake test:units.
#Gemfile source 'http://rubygems.org' gem 'rails', '3.0.5' gem "shoulda" #test/unit/role_test.rb require 'test_helper' class RoleTest < ActiveSupport::TestCase def test_something assert true end # Commenting this block makes everything working ok context "aasd" do should "blah" do end end end
Output for running rake test:units without "context" block:
17:49 <jruby-1.6.0.RC2> ~/test/jrubytest > rake test:units (in /home/rupert/test/jrubytest) JRuby limited openssl loaded. http://jruby.org/openssl gem install jruby-openssl for full support. JRuby limited openssl loaded. http://jruby.org/openssl gem install jruby-openssl for full support. Loaded suite /home/rupert/.rvm/gems/jruby-1.6.0.RC2/gems/rake-0.8.7/lib/rake/rake_test_loader Started . Finished in 0.008000 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 skips Test run options: --seed 49875 Loaded suite /home/rupert/.rvm/gems/jruby-1.6.0.RC2/bin/rake Started Finished in 0.002000 seconds. 0 tests, 0 assertions, 0 failures, 0 errors, 0 skips Test run options: --seed 24667
Output for running it when the "context" block is not commented:
17:51 <jruby-1.6.0.RC2> ~/test/jrubytest > rake test:units (in /home/rupert/test/jrubytest) JRuby limited openssl loaded. http://jruby.org/openssl gem install jruby-openssl for full support. JRuby limited openssl loaded. http://jruby.org/openssl gem install jruby-openssl for full support. Loaded suite /home/rupert/.rvm/gems/jruby-1.6.0.RC2/bin/rake Started Finished in 0.005000 seconds. 0 tests, 0 assertions, 0 failures, 0 errors, 0 skips Test run options: --seed 7889
The application with the test is included as an attachment.
This bug is reported here because it can be reporoduced only in JRuby. It works fine with MRI 1.9