diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-08-14 11:25:31 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-09-16 12:41:44 +0100 |
commit | 90fa58ceb1bdb0f7932ff99d44b7f14710dfc261 (patch) | |
tree | 42b2a8ea0b240414ca075020e940ab60137b40ab | |
parent | bce687aaa3451460af30ec34f612cfbbb7492b85 (diff) |
Use a real pdf file for foi_attachment factory.
-rw-r--r-- | spec/factories.rb | 4 | ||||
-rw-r--r-- | spec/fixtures/files/interesting.pdf | bin | 0 -> 6280 bytes |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/factories.rb b/spec/factories.rb index 18ad3ab38..fe93815f5 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -3,9 +3,9 @@ FactoryGirl.define do sequence(:email) { |n| "person#{n}@example.com" } factory :foi_attachment do - content_type 'text/pdf' + content_type 'application/pdf' filename 'interesting.pdf' - body 'thisisthebody' + body { load_file_fixture('interesting.pdf') } end factory :incoming_message do diff --git a/spec/fixtures/files/interesting.pdf b/spec/fixtures/files/interesting.pdf Binary files differnew file mode 100644 index 000000000..17f543455 --- /dev/null +++ b/spec/fixtures/files/interesting.pdf |