Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Application Error
-
Labels:None
-
Environment:Linux version 2.6.24-17-generic running on amd64,
ruby 1.8.6 (2008-03-28 rev 6360) [amd64-jruby1.1]
-
Number of attachments :
Description
Executing an rspec test using the line option for the spec command does not seem to work with JRuby, e.g.
jruby -S spec --line 99 some_spec.rb
does not execute any tests, whereas MRI with the same file and parameters works as expected. Tried with RSpec 1.1.3 and 1.1.4.
Is this a duplicate of another issue? I believe this is related to our "caller" method returning the actual call backtrace rather than the backtrace at the point a binding is pulled off as in MRI. Folks in ruby-core agreed that the JRuby (and Ruby 1.9) behavior is probably the correct one, so rspec is simply depending on a goofy oddity of MRI.