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