Sha256: dfd71208f0d7fbc72198f956ee269c122ec2c70c6a48e135ef228350e86e69a8

Contents?: true

Size: 317 Bytes

Versions: 43

Compression:

Stored size: 317 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

43 entries across 43 versions & 3 rubygems

Version Path
glebtv-rails-uploader-0.12.0 spec/factories/assets.rb
glebtv-rails-uploader-0.11.1 spec/factories/assets.rb
glebtv-rails-uploader-0.11.0 spec/factories/assets.rb
glebtv-rails-uploader-0.10.1 spec/factories/assets.rb
glebtv-rails-uploader-0.10.0 spec/factories/assets.rb
rails-uploader-0.3.4 spec/factories/assets.rb
rails-uploader-0.3.3 spec/factories/assets.rb
rails-uploader-0.3.2 spec/factories/assets.rb
rails-uploader-0.3.1 spec/factories/assets.rb
rails-uploader-0.3.0 spec/factories/assets.rb
rails-uploader-0.2.8 spec/factories/assets.rb
rails-uploader-0.2.7 spec/factories/assets.rb
rails-uploader-0.2.6 spec/factories/assets.rb
glebtv-rails-uploader-0.9.0 spec/factories/assets.rb
glebtv-rails-uploader-0.8.0 spec/factories/assets.rb
glebtv-rails-uploader-0.7.1 spec/factories/assets.rb
glebtv-rails-uploader-0.7.0 spec/factories/assets.rb
glebtv-rails-uploader-0.6.1 spec/factories/assets.rb
glebtv-rails-uploader-0.6.0 spec/factories/assets.rb
rails-uploader-0.2.5 spec/factories/assets.rb