add specs for photos dropzone when signing location release

This commit is contained in:
bilal
2020-06-10 12:37:23 +02:00
parent 7027c3ea91
commit 96a2313323
3 changed files with 47 additions and 2 deletions

View File

@@ -15,6 +15,13 @@ FactoryBot.define do
end
end
trait :with_photo do
photos do
path = Rails.root.join("spec", "fixtures", "files", "location_photo.png")
[Rack::Test::UploadedFile.new(path, "image/png")]
end
end
trait :non_native do
contract do
path = Rails.root.join("spec", "fixtures", "files", "contract.pdf")