module GitReflow::RSpec::StubHelpers
Public Instance Methods
stub_with_fallback(obj, method)
click to toggle source
# File lib/git_reflow/rspec/stub_helpers.rb, line 5 def stub_with_fallback(obj, method) original_method = obj.method(method) allow(obj).to receive(method).with(anything()) { |*args| original_method.call(*args) } return allow(obj).to receive(method) end