Sha256: af86b9a4172668bcb0b96a6c445dfa6f4c03f58d26afcb7b3f5dd75d3773f220

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

FactoryGirl.define do
  factory :photo, class: Refinery::PhotoGallery::Photo do
    title "Photo"
    description "description"
    path "16_04"

    #sequence(:title){|n| "Photo-#{n}" }
    file  { Rack::Test::UploadedFile.new( File.open(File.join(File.join(Refinery.roots(:'refinery/photo_gallery'), 'spec', 'support', 'images', 'refinery-logo-trans.png'))), "image/png" ) }
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-photo-gallery-0.2.0 spec/factories/photos.rb