Skip to content
This repository was archived by the owner on Nov 15, 2021. It is now read-only.
This repository was archived by the owner on Nov 15, 2021. It is now read-only.

line number wrongly shown as zero in backtrace #28

@betelgeuse

Description

@betelgeuse
(rdb:1) backtrace
--> #0 RSpec::Mocks::MethodDouble.add_stub(error_generator#RSpec::Mocks::ErrorGe...,...) 
       at line /Users/betelgeuse/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.10.1/lib/rspec/mocks/method_double.rb:155
    #1 RSpec::Mocks::Proxy.add_stub(location#String, method_name#Symbol) 
       at line /Users/betelgeuse/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.10.1/lib/rspec/mocks/proxy.rb:0
    #2 RSpec::Mocks::Methods.stub(message_or_hash#Symbol) 
       at line /Users/betelgeuse/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.10.1/lib/rspec/mocks/methods.rb:35

Here proxy.rb is really calling from line 78 so the line number in the backtrace is wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions