Skip to content

Instantly share code, notes, and snippets.

@aeden
Created April 3, 2010 09:11
Show Gist options
  • Save aeden/354294 to your computer and use it in GitHub Desktop.
Save aeden/354294 to your computer and use it in GitHub Desktop.
Spec::Runner.configure do |config|
config.before do
subscriber = mock(RSpreedly::Subscriber)
subscriber.stub!(:save)
RSpreedly::Subscriber.stub!(:new).and_return(subscriber)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment