-
-
Save tomlea/128034 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# No Boom, it was creating the handle first... cause app Boom | |
# This does however, as you say, "Boom" | |
Factory.define :product do |p| | |
p.product_handles do |p| | |
[Factory.build(:product_handle)] | |
end | |
end | |
# Only issue here is that the product has knowledge of the handle... knowledge it need not have. | |
# (I had to add has_many : product_handles to the Product). | |
# This could however be for the best. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment