diff options
author | gfyoung <gfyoung17+gitlab@gmail.com> | 2019-04-15 13:17:05 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-04-15 13:17:05 +0300 |
commit | 93a44e135b0d09ed0fd31dce5d81841a96ef8d67 (patch) | |
tree | e939a8fb6a83fbe4edcc592cd5882cfb4037b081 /spec/controllers/omniauth_callbacks_controller_spec.rb | |
parent | d5e3677e0c5f4565cf45c1da666a4fca45d930f5 (diff) |
Add some frozen string to spec/**/*.rb
Adds frozen string to the following:
* spec/bin/**/*.rb
* spec/config/**/*.rb
* spec/controllers/**/*.rb
xref https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
Diffstat (limited to 'spec/controllers/omniauth_callbacks_controller_spec.rb')
-rw-r--r-- | spec/controllers/omniauth_callbacks_controller_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/controllers/omniauth_callbacks_controller_spec.rb b/spec/controllers/omniauth_callbacks_controller_spec.rb index b823a8d7463..0af0eb4f942 100644 --- a/spec/controllers/omniauth_callbacks_controller_spec.rb +++ b/spec/controllers/omniauth_callbacks_controller_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe OmniauthCallbacksController, type: :controller do @@ -7,7 +9,7 @@ describe OmniauthCallbacksController, type: :controller do let(:user) { create(:omniauth_user, extern_uid: extern_uid, provider: provider) } before do - mock_auth_hash(provider.to_s, extern_uid, user.email) + mock_auth_hash(provider.to_s, +extern_uid, user.email) stub_omniauth_provider(provider, context: request) end @@ -141,7 +143,7 @@ describe OmniauthCallbacksController, type: :controller do end shared_context 'sign_up' do - let(:user) { double(email: 'new@example.com') } + let(:user) { double(email: +'new@example.com') } before do stub_omniauth_setting(block_auto_created_users: false) @@ -220,7 +222,7 @@ describe OmniauthCallbacksController, type: :controller do before do stub_omniauth_saml_config({ enabled: true, auto_link_saml_user: true, allow_single_sign_on: ['saml'], providers: [saml_config] }) - mock_auth_hash_with_saml_xml('saml', 'my-uid', user.email, mock_saml_response) + mock_auth_hash_with_saml_xml('saml', +'my-uid', user.email, mock_saml_response) request.env["devise.mapping"] = Devise.mappings[:user] request.env['omniauth.auth'] = Rails.application.env_config['omniauth.auth'] post :saml, params: { SAMLResponse: mock_saml_response } |