Sha256: 6c59d5bb9339b271ec6a7ce6725b8dfe2ec7b50541e5d83cb7b6029954785c58
Contents?: true
Size: 533 Bytes
Versions: 6
Compression:
Stored size: 533 Bytes
Contents
FactoryGirl.define do factory :generic_file, class: Worthwhile::GenericFile do factory :file_with_work do ignore do user { FactoryGirl.create(:user) } content nil end batch { FactoryGirl.create(:generic_work, user: user) } after(:build) do |file, evaluator| file.apply_depositor_metadata(evaluator.user.user_key) if evaluator.content file.add_file(evaluator.content.read, 'content', evaluator.content.original_filename) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems