Skip to content

Instantly share code, notes, and snippets.

@lessless
Created November 1, 2012 11:25
Show Gist options
  • Save lessless/3993124 to your computer and use it in GitHub Desktop.
Save lessless/3993124 to your computer and use it in GitHub Desktop.
cards_spec.rb
- before :all do
- @account = Account.make! :user => $user
- @card = Card.make! :account => @account, :state => 'active'
- end
+
+ let!(:account) { Account.make! :user => $user }
+ let!(:card) { Card.make! :account => account, :state => 'active' }
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment