photos.rb 389 Bytes
Newer Older
Martin Markech's avatar
Martin Markech committed
1
2
FactoryGirl.define do
  factory :photo, class: Refinery::PhotoGallery::Photo do
Martin Markech's avatar
Martin Markech committed
3
4
5
6
    title "Photo"
    description "description"
    path "16_04"

Martin Markech's avatar
Martin Markech committed
7
    #sequence(:title){|n| "Photo-#{n}" }
Martin Markech's avatar
Martin Markech committed
8
    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" ) }
Martin Markech's avatar
Martin Markech committed
9
10
11
12
  end
end