Using shoulda prevents Rails from running tests in ruby1.9 mode
---------------------------------------------------------------
Key: JRUBY-5550
URL: http://jira.codehaus.org/browse/JRUBY-5550
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6RC2
Environment: Using 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)
Reporter: Robert Pankowecki
Assignee: Thomas E Enebo
Attachments: shoulda.tar.gz
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 message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email