Fix warning: assigned but unused variable

This commit is contained in:
Vasiliy Yakliushin 2019-04-28 16:38:36 +02:00
parent c0dd32ec19
commit 9f6c262591
1 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ class StaticTest < Minitest::Test
it 'sets cache control headers on static files if set' do
@app.set :static_cache_control, :public
env = Rack::MockRequest.env_for("/#{File.basename(__FILE__)}")
status, headers, body = @app.call(env)
_, headers, _ = @app.call(env)
assert headers.has_key?('Cache-Control')
assert_equal headers['Cache-Control'], 'public'
@ -207,7 +207,7 @@ class StaticTest < Minitest::Test
[:public, :must_revalidate, {:max_age => 300}]
)
env = Rack::MockRequest.env_for("/#{File.basename(__FILE__)}")
status, headers, body = @app.call(env)
_, headers, _ = @app.call(env)
assert headers.has_key?('Cache-Control')
assert_equal(
headers['Cache-Control'],