Skip to content

Add method to call_original method from a stub

gitlab-qa-bot requested to merge github/fork/myronmarston/can_call_original into master

Created by: myronmarston

foo.stub(:bar) do
  # do something relevant to the example
  call_original
end

foo.stub(:bar) do |*args|
  # do something relevant to the example
  call_original(*args)
end

Merge request reports