Skip to content

Instantly share code, notes, and snippets.

@workmad3
Created March 16, 2010 10:19
Show Gist options
  • Save workmad3/333819 to your computer and use it in GitHub Desktop.
Save workmad3/333819 to your computer and use it in GitHub Desktop.
Foo.stub(:new).and_return(@foo = mock(Foo))
@foo.stub!(:bar).and_return("omg!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment