Sha256: 98b821676b74e9a285f70b88af7d37d08614a42f3aaa92e6fe3a096e4ae7040a

Contents?: true

Size: 366 Bytes

Versions: 7

Compression:

Stored size: 366 Bytes

Contents

# https://til.codes/testing-carrierwave-file-uploads-with-rspec-and-factorygirl/
FactoryGirl.define do
  factory :pwb_content_photo, class: 'Pwb::ContentPhoto' do
    # path_to_file = Pwb::Engine.root.join("db/example_images/flat_balcony.jpg")
    # photo Rack::Test::UploadedFile.new(File.open(File.join(Rails.root, '/spec/fixtures/myfiles/myfile.jpg')))
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pwb-1.4.0 spec/factories/pwb_content_photos.rb
pwb-1.3.0 spec/factories/pwb_content_photos.rb
pwb-1.2.0 spec/factories/pwb_content_photos.rb
pwb-1.1.1 spec/factories/pwb_content_photos.rb
pwb-1.0.0 spec/factories/pwb_content_photos.rb
pwb-0.1.1 spec/factories/pwb_content_photos.rb
pwb-0.1.0 spec/factories/pwb_content_photos.rb