Skip to content

Instantly share code, notes, and snippets.

@softwaregravy
Created October 13, 2011 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save softwaregravy/1284773 to your computer and use it in GitHub Desktop.
Save softwaregravy/1284773 to your computer and use it in GitHub Desktop.
Business spec refactoring
# before
let (:user) { Factory(:user) }
# after
before :all do
@user = Factory(:user)
end
after :all do
@user.destroy
end
let (:user) { @user }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment