Sha256: 63683cdc4955312603b0eb02a9631454f305b07197dff78810a6b303179b8cbf
Contents?: true
Size: 219 Bytes
Versions: 20
Compression:
Stored size: 219 Bytes
Contents
module RspecStubHelpers def stub_with_fallback(obj, method) original_method = obj.method(method) obj.stub(method).with(anything()) { |*args| original_method.call(*args) } return obj.stub(method) end end
Version data entries
20 entries across 20 versions & 1 rubygems