From 4dc2d9d54f41df54ec04867e217f952a64933947 Mon Sep 17 00:00:00 2001 From: Michael Bianco Date: Mon, 29 Oct 2012 13:05:35 -0400 Subject: [PATCH] Minor improvement to digital factory --- spec/factories/digital_factory.rb | 3 +++ 1 file changed, 3 insertions(+) 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