Skip to content

Instantly share code, notes, and snippets.

@arwagner
Last active December 15, 2015 16:29
Show Gist options
  • Save arwagner/5289895 to your computer and use it in GitHub Desktop.
Save arwagner/5289895 to your computer and use it in GitHub Desktop.
def foo obj
obj.bar(1)
obj.bar(2)
end
describe "foo" do
it "calls bar on obj" do
obj = stub
obj.should_receive(:bar).with(2)
foo obj
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment