Sha256: 793306bb9630a4973211e66df1e049452cbd829a7dc34874bfe53c8d29a7fcd1

Contents?: true

Size: 390 Bytes

Versions: 7

Compression:

Stored size: 390 Bytes

Contents

url_1 = 'https://s3.amazonaws.com/ISh-trashy/photos/thumb/52587525b6c0d0a0f0000027/vec.jpg'

FactoryGirl.define do
  
  factory :photo do
    name 'blah blah'
    is_public 1
    is_trash 0
    # photo File.open('spec/data/photo_1.jpg')
    photo File.open('spec/data/photo_2.gif')
    user User.all.first
  end

  factory :photo_without_name, :parent => :photo do
    name ''
  end


end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
ish_lib-0.0.8 spec/factories/photo.rb
ish_lib_engine-0.0.5 spec/factories/photo.rb
ish_lib_engine-0.0.3 spec/factories/photo.rb
ish_lib_engine-0.0.2 spec/factories/photo.rb
ish_lib_manager-0.0.1 test/dummy/spec/factories/photo.rb
ish_lib_engine-0.0.1 spec/factories/photo.rb
ish_lib-0.0.3 spec/factories/photo.rb