Skip to content

Instantly share code, notes, and snippets.

@robbl
Created October 7, 2013 23:19
Show Gist options
  • Save robbl/6876693 to your computer and use it in GitHub Desktop.
Save robbl/6876693 to your computer and use it in GitHub Desktop.
diff --git a/spec/factories/payments.rb b/spec/factories/payments.rb
index 532b8ab..8e3680a 100644
--- a/spec/factories/payments.rb
+++ b/spec/factories/payments.rb
@@ -3,5 +3,6 @@ FactoryGirl.define do
total 25.0
state 'new'
user
+ cart { create(:cart, user: user) }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment