mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 05:34:53 +08:00
10 lines
239 B
Ruby
10 lines
239 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :asset do
|
|
team
|
|
after(:create) do |asset|
|
|
asset.file.attach(io: File.open(Rails.root.join('spec/fixtures/files/test.jpg')), filename: 'test.jpg')
|
|
end
|
|
end
|
|
end
|