aboutsummaryrefslogtreecommitdiffstats
path: root/spec/factories/foi_attchments.rb
blob: 4e9875a008695b29264e598820fe58a3ab3b22dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FactoryGirl.define do

    factory :foi_attachment do
        factory :body_text do
            content_type 'text/plain'
            body { 'hereisthetext' }
            filename 'attachment.txt'
        end
        factory :pdf_attachment do
            content_type 'application/pdf'
            filename 'interesting.pdf'
            body { load_file_fixture('interesting.pdf') }
        end
        factory :rtf_attachment do
            content_type 'application/rtf'
            filename 'interesting.rtf'
            body { load_file_fixture('interesting.rtf') }
        end
    end

end