Make Rubocop happy
This commit is contained in:
parent
ce839a5d5c
commit
e49eb3bd9f
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class MoveToManagedAuthenticator < ActiveRecord::Migration[5.2]
|
class MoveToManagedAuthenticator < ActiveRecord::Migration[5.2]
|
||||||
def up
|
def up
|
||||||
execute <<~SQL
|
execute <<~SQL
|
||||||
|
|
|
@ -33,11 +33,11 @@ describe OAuth2BasicAuthenticator do
|
||||||
let(:authenticator) { OAuth2BasicAuthenticator.new }
|
let(:authenticator) { OAuth2BasicAuthenticator.new }
|
||||||
|
|
||||||
let(:auth) do
|
let(:auth) do
|
||||||
OmniAuth::AuthHash.new({ 'provider' => 'oauth2_basic',
|
OmniAuth::AuthHash.new('provider' => 'oauth2_basic',
|
||||||
'credentials' => { 'token': 'token' },
|
'credentials' => { 'token': 'token' },
|
||||||
'uid' => '123456789',
|
'uid' => '123456789',
|
||||||
'info' => { id: 'id' },
|
'info' => { id: 'id' },
|
||||||
'extra' => {} })
|
'extra' => {})
|
||||||
end
|
end
|
||||||
|
|
||||||
before(:each) do
|
before(:each) do
|
||||||
|
@ -235,7 +235,7 @@ describe OAuth2BasicAuthenticator do
|
||||||
let(:authenticator) { OAuth2BasicAuthenticator.new }
|
let(:authenticator) { OAuth2BasicAuthenticator.new }
|
||||||
|
|
||||||
let(:auth) do
|
let(:auth) do
|
||||||
OmniAuth::AuthHash.new({
|
OmniAuth::AuthHash.new(
|
||||||
'provider' => 'oauth2_basic',
|
'provider' => 'oauth2_basic',
|
||||||
'credentials' => {
|
'credentials' => {
|
||||||
'token' => 'token'
|
'token' => 'token'
|
||||||
|
@ -246,7 +246,7 @@ describe OAuth2BasicAuthenticator do
|
||||||
"email" => 'sammy@digitalocean.com'
|
"email" => 'sammy@digitalocean.com'
|
||||||
},
|
},
|
||||||
'extra' => {}
|
'extra' => {}
|
||||||
})
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:access_token) do
|
let(:access_token) do
|
||||||
|
|
Loading…
Reference in New Issue