diff --git a/spec/factories/digital_factory.rb b/spec/factories/digital_factory.rb index 0250802..2ea86da 100644 --- a/spec/factories/digital_factory.rb +++ b/spec/factories/digital_factory.rb @@ -2,5 +2,8 @@ FactoryGirl.define do factory :digital, :class => Spree::Digital do |f| # TODO good to assign variant association if no association is manually defined # f.variant { |p| p.association(:variant) } + + attachment_content_type 'application/octet-stream' + attachment_file_name 'a_great_book.epub' end end \ No newline at end of file