Last active
December 15, 2015 16:29
-
-
Save arwagner/5289895 to your computer and use it in GitHub Desktop.
Revisions
-
arwagner revised this gist
Apr 6, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 obj.should_receive(:bar).with(2) foo obj end end -
arwagner created this gist
Apr 2, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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