diff --git a/Gemfile.lock b/Gemfile.lock index 723184a745..1b16bc6934 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -105,11 +105,12 @@ GEM erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.1, >= 1.2.0) - active_storage_validations (1.3.0) + active_storage_validations (1.4.0) activejob (>= 6.1.4) activemodel (>= 6.1.4) activestorage (>= 6.1.4) activesupport (>= 6.1.4) + marcel (>= 1.0.3) activejob (7.0.8.7) activesupport (= 7.0.8.7) globalid (>= 0.3.6) diff --git a/spec/factories/facilities.rb b/spec/factories/facilities.rb index 4073d2f0c8..12887daa56 100644 --- a/spec/factories/facilities.rb +++ b/spec/factories/facilities.rb @@ -11,7 +11,7 @@ sequence(:url_name) { |n| "facility#{Facility.count + (2 * n)}" } trait :with_image do - file { File.open("#{Rails.root}/spec/files/cern.jpeg") } + file { Rack::Test::UploadedFile.new("spec/files/cern.jpeg", "image/jpeg") } end trait :with_order_notification do