class RSpec::Mocks::InsertOntoBacktrace
Insert original locations into stacktraces
@private
Public Class Methods
line(location) { || ... }
click to toggle source
# File lib/rspec/mocks/message_expectation.rb, line 706 def self.line(location) yield rescue RSpec::Mocks::MockExpectationError => error error.backtrace.insert(0, location) Kernel.raise error end