Sha256: 345910ed9777099ce5e6b87e215269164be441963b5b7b5a303f85929cc22f7d

Contents?: true

Size: 358 Bytes

Versions: 8

Compression:

Stored size: 358 Bytes

Contents

FactoryGirl.define do
  factory :picture, class: "FamilyGallery::Picture" do
    title { Forgery::Name.first_name }
    description { Forgery::LoremIpsum.words(10, random: true) }
    image { File.new("#{Rails.root}/../../spec/test_pictures/sigrid.jpg") }

    association :user_owner, factory: :user
    association :user_uploaded, factory: :user
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
family_gallery-0.0.8 spec/factories/family_gallery/picture.rb
family_gallery-0.0.7 spec/factories/family_gallery/picture.rb
family_gallery-0.0.6 spec/factories/family_gallery/picture.rb
family_gallery-0.0.5 spec/factories/family_gallery/picture.rb
family_gallery-0.0.4 spec/factories/family_gallery/picture.rb
family_gallery-0.0.3 spec/factories/family_gallery/picture.rb
family_gallery-0.0.2 spec/factories/family_gallery/picture.rb
family_gallery-0.0.1 spec/factories/family_gallery/picture.rb