JRuby

spec --line does not work with JRuby

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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 :
    0

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.

Activity

Hide
Charles Oliver Nutter added a comment -

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.

Show
Charles Oliver Nutter added a comment - 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.
Hide
Erno Mononen added a comment -

Yes, I think this is a duplicate of JRUBY-3092 (which is closed as WONTFIX for the reason you mentioned).

Show
Erno Mononen added a comment - Yes, I think this is a duplicate of JRUBY-3092 (which is closed as WONTFIX for the reason you mentioned).
Hide
Charles Oliver Nutter added a comment -

Dupe of JRUBY-3092, which we won't fix.

Show
Charles Oliver Nutter added a comment - Dupe of JRUBY-3092, which we won't fix.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: