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.

Revisions

  1. arwagner revised this gist Apr 6, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ end
    describe "foo" do
    it "calls bar on obj" do
    obj = stub
    stub.should_receive(:bar).with(2)
    obj.should_receive(:bar).with(2)
    foo obj
    end
    end
  2. arwagner created this gist Apr 2, 2013.
    12 changes: 12 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    def foo obj
    obj.bar(1)
    obj.bar(2)
    end

    describe "foo" do
    it "calls bar on obj" do
    obj = stub
    stub.should_receive(:bar).with(2)
    foo obj
    end
    end