Sha256: fd1c4a44820e391ea38d7776ceb34000a9a56e405029f79e39adf13e07340183

Contents?: true

Size: 283 Bytes

Versions: 2

Compression:

Stored size: 283 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_file_name "rails.png"
    
    association :assetable, :factory => :article
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
glebtv-rails-uploader-0.4.1 spec/factories/assets.rb
glebtv-rails-uploader-0.4.0 spec/factories/assets.rb