Sha256: aff7643ff46426fe8fe9febcd10ee6759a5b4005560a902b302443add4a8e941
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :article, class: Article do title { 'MyString' } content { 'MyText' } end factory :picture, class: Picture do data { File.open('spec/factories/files/rails.png') } data_content_type { 'image/png' } data_file_name { 'rails.png' } association :assetable, factory: :article end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-uploader-0.5.9 | spec/factories/factories.rb |