Skip to content

Commit

Permalink
correction in gift factory
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoLombardo committed Jul 29, 2024
1 parent d73fd94 commit e7d821f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/factories/gifts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@
content_type: 'image/png'
)
gift.supplier ||= create(:supplier)
gift.categories = create_list(:category, 3)
gift.categories ||= create_list(:category, 3)
end

trait(:with_customizations) do
customizations { create_list(:customization, 3, gifts: [gift]) }
end
# trait(:with_categories) do
# Category.all.sample(3)
# end
end
end

0 comments on commit e7d821f

Please sign in to comment.