Minor improvement to digital factory
This commit is contained in:
@@ -2,5 +2,8 @@ FactoryGirl.define do
|
|||||||
factory :digital, :class => Spree::Digital do |f|
|
factory :digital, :class => Spree::Digital do |f|
|
||||||
# TODO good to assign variant association if no association is manually defined
|
# TODO good to assign variant association if no association is manually defined
|
||||||
# f.variant { |p| p.association(:variant) }
|
# f.variant { |p| p.association(:variant) }
|
||||||
|
|
||||||
|
attachment_content_type 'application/octet-stream'
|
||||||
|
attachment_file_name 'a_great_book.epub'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user