Merge pull request #149 from 5apps/chore/deprecation_warnings

Fix deprecation warnings
This commit is contained in:
Basti 2022-05-13 13:58:56 +02:00 committed by GitHub
commit f956501dba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,3 @@
require_relative "./spec_helper"
shared_examples_for 'a REST adapter' do
include Rack::Test::Methods
@ -423,8 +421,8 @@ shared_examples_for 'a REST adapter' do
it "returns the required response headers" do
get "/phil/public/shares/example.jpg"
last_response.status.must_equal 200
last_response.headers["Content-Type"].must_equal "image/jpeg"
_(last_response.status).must_equal 200
_(last_response.headers["Content-Type"]).must_equal "image/jpeg"
end
end
@ -442,8 +440,8 @@ JFIFddDuckyA␍⎺␉␊␍
header 'Range', 'bytes=0-16'
get "/phil/public/shares/example_partial.jpg"
last_response.status.must_equal 206
last_response.headers["Content-Type"].must_equal "image/jpeg"
_(last_response.status).must_equal 206
_(last_response.headers["Content-Type"]).must_equal "image/jpeg"
end
end
end