Sha256: 4e801c63877485c78c8fe3861d0743885dd1c3405346948dcf26f304299990b4

Contents?: true

Size: 233 Bytes

Versions: 36

Compression:

Stored size: 233 Bytes

Contents

#Monkey patch UploadedFile so that it responds to read (same as ActionDispatch::Http::UploadedFile). Required by RestClient when posting to fedora.
class Rack::Test::UploadedFile
  def read(*args)
    @tempfile.read(*args)
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
sufia-6.2.0 spec/support/uploaded_file_monkeypatch.rb
sufia-6.1.0 spec/support/uploaded_file_monkeypatch.rb
sufia-5.0.0 spec/support/uploaded_file_monkeypatch.rb
sufia-6.0.0 spec/support/uploaded_file_monkeypatch.rb
sufia-6.0.0.rc4 spec/support/uploaded_file_monkeypatch.rb
sufia-6.0.0.rc3 spec/support/uploaded_file_monkeypatch.rb
sufia-5.0.0.rc1 spec/support/uploaded_file_monkeypatch.rb
sufia-6.0.0.rc2 spec/support/uploaded_file_monkeypatch.rb
sufia-6.0.0.rc1 spec/support/uploaded_file_monkeypatch.rb
sufia-4.3.1 spec/support/uploaded_file_monkeypatch.rb
sufia-6.0.0.beta1 spec/support/uploaded_file_monkeypatch.rb
sufia-4.2.0 spec/support/uploaded_file_monkeypatch.rb
sufia-4.1.0 spec/support/uploaded_file_monkeypatch.rb
sufia-4.0.1 spec/support/uploaded_file_monkeypatch.rb
sufia-4.0.0 spec/support/uploaded_file_monkeypatch.rb
sufia-4.0.0.rc2 spec/support/uploaded_file_monkeypatch.rb
sufia-4.0.0.rc1 spec/support/uploaded_file_monkeypatch.rb
sufia-4.0.0.beta4 spec/support/uploaded_file_monkeypatch.rb
sufia-4.0.0.beta3 spec/support/uploaded_file_monkeypatch.rb
sufia-4.0.0.beta2 spec/support/uploaded_file_monkeypatch.rb