Sha256: 058ddcaf016b6319cf5b3ca7706ea93ee0f6dc1f5c23aa0cef00d35cc59b79c3
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
require "much-stub" module Assert def self.stubs MuchStub.stubs end def self.stub(*args, &block) MuchStub.stub(*args, &block) end def self.unstub(*args) MuchStub.unstub(*args) end def self.unstub! MuchStub.unstub! end def self.stub_send(*args, &block) orig_caller = caller_locations begin MuchStub.stub_send(*args, &block) rescue MuchStub::NotStubbedError => err err.set_backtrace(orig_caller.map(&:to_s)) raise err end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
assert-2.18.0 | lib/assert/stub.rb |