Skip to content

Instantly share code, notes, and snippets.

@MarkPochert
Created December 1, 2010 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MarkPochert/723628 to your computer and use it in GitHub Desktop.
Save MarkPochert/723628 to your computer and use it in GitHub Desktop.
user = Factory.create(:user)
user.stub(:valid?).and_return(false)
post :create, :user => user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment