Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.RC2, JRuby 1.7.0
Assignee: Thomas E Enebo
Created: 15/Oct/12 8:00 PM
Description:

Given:

top_level_return_spec.rb
require 'rspec'

return

MRI raises a LocalJumpError but JRuby does not.

$ ruby -v -S rspec top_level_return_spec.rb 
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin12.2.0]
/Users/asari/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rspec-core (>= 0) amongst [bundler-1.2.1, rake-0.9.2.2, rubygems-bundler-1.1.0, rvm-1.11.3.5] (Gem::LoadError)
	from /Users/asari/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
	from /Users/asari/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem'
	from /usr/bin/rspec:18:in `<main>'
$ jruby -v -S rspec top_level_return_spec.rb
jruby 1.7.0.RC2 (1.9.3p203) 2012-10-15 bcdd858 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_07-b10 [darwin-x86_64]
No examples found.


Finished in 0.002 seconds
0 examples, 0 failures

It is not clear to me, though, if this is an MRI bug or a JRuby bug yet.

Environment: RSpec (2.x?)
Project: JRuby
Priority: Minor Minor
Reporter: Hiro Asari
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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

Reply via email to