Parent

Methods

Class/Module Index [+]

Quicksearch

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 652
def self.line(location)
  yield
rescue RSpec::Mocks::MockExpectationError => error
  error.backtrace.insert(0, location)
  Kernel::raise error
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.