diff options
Diffstat (limited to 'spec/factories/foi_attchments.rb')
-rw-r--r-- | spec/factories/foi_attchments.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/factories/foi_attchments.rb b/spec/factories/foi_attchments.rb new file mode 100644 index 000000000..d7a90efb8 --- /dev/null +++ b/spec/factories/foi_attchments.rb @@ -0,0 +1,15 @@ +FactoryGirl.define do + + factory :foi_attachment do + factory :body_text do + content_type 'text/plain' + body { 'hereisthetext' } + end + factory :pdf_attachment do + content_type 'application/pdf' + filename 'interesting.pdf' + body { load_file_fixture('interesting.pdf') } + end + end + +end |