From 61a64407866ef686c85163348434cc261d6a485c Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Mon, 25 May 2015 11:17:51 +0200 Subject: [PATCH] Do not use trailing underscores in parallel assignment --- spec/omniauth/failure_endpoint_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/omniauth/failure_endpoint_spec.rb b/spec/omniauth/failure_endpoint_spec.rb index 1e7e032..ecf761e 100644 --- a/spec/omniauth/failure_endpoint_spec.rb +++ b/spec/omniauth/failure_endpoint_spec.rb @@ -34,24 +34,24 @@ describe OmniAuth::FailureEndpoint do end it 'is a redirect' do - status, _, _ = *subject.call(env) + status, = *subject.call(env) expect(status).to eq(302) end it 'includes the SCRIPT_NAME' do - _, head, _ = *subject.call(env.merge('SCRIPT_NAME' => '/random')) + _, head, = *subject.call(env.merge('SCRIPT_NAME' => '/random')) expect(head['Location']).to eq('/random/auth/failure?message=invalid_request&strategy=test') end it 'respects the configured path prefix' do allow(OmniAuth.config).to receive(:path_prefix).and_return('/boo') - _, head, _ = *subject.call(env) + _, head, = *subject.call(env) expect(head['Location']).to eq('/boo/failure?message=invalid_request&strategy=test') end it 'includes the origin (escaped) if one is provided' do env.merge! 'omniauth.origin' => '/origin-example' - _, head, _ = *subject.call(env) + _, head, = *subject.call(env) expect(head['Location']).to be_include('&origin=%2Forigin-example') end end