Sha256: 2c7c9a81286fc3a8d5d39429b98ca2caec77f7e9de20ee1896485816e5013c13

Contents?: true

Size: 305 Bytes

Versions: 15

Compression:

Stored size: 305 Bytes

Contents

# Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do
  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

15 entries across 15 versions & 1 rubygems

Version Path
rails-uploader-0.5.8 spec/factories/assets.rb
rails-uploader-0.5.7 spec/factories/assets.rb
rails-uploader-0.5.6 spec/factories/assets.rb
rails-uploader-0.5.5 spec/factories/assets.rb
rails-uploader-0.5.4 spec/factories/assets.rb
rails-uploader-0.5.3 spec/factories/assets.rb
rails-uploader-0.5.2 spec/factories/assets.rb
rails-uploader-0.5.1 spec/factories/assets.rb
rails-uploader-0.5.0 spec/factories/assets.rb
rails-uploader-0.4.5 spec/factories/assets.rb
rails-uploader-0.4.4 spec/factories/assets.rb
rails-uploader-0.4.3 spec/factories/assets.rb
rails-uploader-0.4.2 spec/factories/assets.rb
rails-uploader-0.4.1 spec/factories/assets.rb
rails-uploader-0.4.0 spec/factories/assets.rb