Created
January 25, 2017 23:18
-
-
Save muZk/08887fc08ecd43d985ee975c0cf8130d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# my_payment_factory | |
FactoryGirl.define do | |
factory :my_payment do | |
after(:build) do |my_payment, evaluator| | |
my_payment.shopping_cart = FactoryGirl.create(:shopping_cart) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment