lib/spree/api/testing_support/helpers.rb in solidus_api-2.10.5 vs lib/spree/api/testing_support/helpers.rb in solidus_api-2.11.0

- old
+ new

@@ -36,10 +36,10 @@ def image(filename) File.open(Spree::Api::Engine.root + "spec/fixtures" + filename) end def upload_image(filename) - fixture_file_upload(image(filename).path, 'image/jpg') + Rack::Test::UploadedFile.new(File.open(image(filename).path), 'image/jpg') end end end end end