scinote-web/spec/factories/assets.rb

10 lines
199 B
Ruby
Raw Normal View History

2019-05-06 20:12:45 +08:00
# frozen_string_literal: true
FactoryBot.define do
2017-07-28 16:14:50 +08:00
factory :asset do
file do
fixture_file_upload(Rails.root.join('spec', 'fixtures', 'files', 'test.jpg'), 'image/jpg')
end
2017-07-28 16:14:50 +08:00
end
end