Commit 93a44e13 authored by gfyoung's avatar gfyoung Committed by Rémy Coutable

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
parent d5e3677e
---
title: Add some frozen string to spec/**/*.rb
merge_request:
author: gfyoung
type: other
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
load File.expand_path('../../bin/changelog', __dir__) load File.expand_path('../../bin/changelog', __dir__)
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'mail_room.yml' do describe 'mail_room.yml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require Rails.root.join('config', 'object_store_settings.rb') require Rails.root.join('config', 'object_store_settings.rb')
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Settings do describe Settings do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe AbuseReportsController do describe AbuseReportsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Admin::ApplicationSettingsController do describe Admin::ApplicationSettingsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Admin::ApplicationsController do describe Admin::ApplicationsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Admin::DashboardController do describe Admin::DashboardController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Admin::GitalyServersController do describe Admin::GitalyServersController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Admin::GroupsController do describe Admin::GroupsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Admin::HealthCheckController do describe Admin::HealthCheckController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Admin::HooksController do describe Admin::HooksController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Admin::IdentitiesController do describe Admin::IdentitiesController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Admin::ImpersonationsController do describe Admin::ImpersonationsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Admin::ProjectsController do describe Admin::ProjectsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Admin::RunnersController do describe Admin::RunnersController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Admin::ServicesController do describe Admin::ServicesController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Admin::SpamLogsController do describe Admin::SpamLogsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Admin::UsersController do describe Admin::UsersController do
......
# coding: utf-8 # coding: utf-8
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe ApplicationController do describe ApplicationController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe AutocompleteController do describe AutocompleteController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Boards::IssuesController do describe Boards::IssuesController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Boards::ListsController do describe Boards::ListsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe ChecksCollaboration do describe ChecksCollaboration do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe ContinueParams do describe ContinueParams do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe ControllerWithCrossProjectAccessCheck do describe ControllerWithCrossProjectAccessCheck do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe GroupTree do describe GroupTree do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe InternalRedirect do describe InternalRedirect do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe IssuableCollections do describe IssuableCollections do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe LfsRequest do describe LfsRequest do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe ProjectUnauthorized do describe ProjectUnauthorized do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe SendFileUpload do describe SendFileUpload do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Dashboard::GroupsController do describe Dashboard::GroupsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Dashboard::LabelsController do describe Dashboard::LabelsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Dashboard::MilestonesController do describe Dashboard::MilestonesController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Dashboard::ProjectsController do describe Dashboard::ProjectsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Dashboard::TodosController do describe Dashboard::TodosController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe DashboardController do describe DashboardController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Explore::GroupsController do describe Explore::GroupsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Explore::ProjectsController do describe Explore::ProjectsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe GoogleApi::AuthorizationsController do describe GoogleApi::AuthorizationsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Groups::AvatarsController do describe Groups::AvatarsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Groups::BoardsController do describe Groups::BoardsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Groups::ChildrenController do describe Groups::ChildrenController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Groups::GroupMembersController do describe Groups::GroupMembersController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Groups::LabelsController do describe Groups::LabelsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Groups::MilestonesController do describe Groups::MilestonesController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Groups::RunnersController do describe Groups::RunnersController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Groups::Settings::CiCdController do describe Groups::Settings::CiCdController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Groups::SharedProjectsController do describe Groups::SharedProjectsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Groups::UploadsController do describe Groups::UploadsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Groups::VariablesController do describe Groups::VariablesController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe GroupsController do describe GroupsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe HealthCheckController do describe HealthCheckController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe HealthController do describe HealthController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe HelpController do describe HelpController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Import::BitbucketController do describe Import::BitbucketController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Import::BitbucketServerController do describe Import::BitbucketServerController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Import::FogbugzController do describe Import::FogbugzController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Import::GiteaController do describe Import::GiteaController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Import::GithubController do describe Import::GithubController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Import::GitlabController do describe Import::GitlabController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Import::GitlabProjectsController do describe Import::GitlabProjectsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Import::GoogleCodeController do describe Import::GoogleCodeController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe InvitesController do describe InvitesController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Ldap::OmniauthCallbacksController do describe Ldap::OmniauthCallbacksController do
...@@ -43,7 +45,7 @@ describe Ldap::OmniauthCallbacksController do ...@@ -43,7 +45,7 @@ describe Ldap::OmniauthCallbacksController do
end end
context 'sign up' do context 'sign up' do
let(:user) { double(email: 'new@example.com') } let(:user) { double(email: +'new@example.com') }
before do before do
stub_omniauth_setting(block_auto_created_users: false) stub_omniauth_setting(block_auto_created_users: false)
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe MetricsController do describe MetricsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe NotificationSettingsController do describe NotificationSettingsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Oauth::ApplicationsController do describe Oauth::ApplicationsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Oauth::AuthorizationsController do describe Oauth::AuthorizationsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe OmniauthCallbacksController, type: :controller do describe OmniauthCallbacksController, type: :controller do
...@@ -7,7 +9,7 @@ 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) } let(:user) { create(:omniauth_user, extern_uid: extern_uid, provider: provider) }
before do 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) stub_omniauth_provider(provider, context: request)
end end
...@@ -141,7 +143,7 @@ describe OmniauthCallbacksController, type: :controller do ...@@ -141,7 +143,7 @@ describe OmniauthCallbacksController, type: :controller do
end end
shared_context 'sign_up' do shared_context 'sign_up' do
let(:user) { double(email: 'new@example.com') } let(:user) { double(email: +'new@example.com') }
before do before do
stub_omniauth_setting(block_auto_created_users: false) stub_omniauth_setting(block_auto_created_users: false)
...@@ -220,7 +222,7 @@ describe OmniauthCallbacksController, type: :controller do ...@@ -220,7 +222,7 @@ describe OmniauthCallbacksController, type: :controller do
before do before do
stub_omniauth_saml_config({ enabled: true, auto_link_saml_user: true, allow_single_sign_on: ['saml'], stub_omniauth_saml_config({ enabled: true, auto_link_saml_user: true, allow_single_sign_on: ['saml'],
providers: [saml_config] }) 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["devise.mapping"] = Devise.mappings[:user]
request.env['omniauth.auth'] = Rails.application.env_config['omniauth.auth'] request.env['omniauth.auth'] = Rails.application.env_config['omniauth.auth']
post :saml, params: { SAMLResponse: mock_saml_response } post :saml, params: { SAMLResponse: mock_saml_response }
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe PasswordsController do describe PasswordsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Profiles::AccountsController do describe Profiles::AccountsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Profiles::AvatarsController do describe Profiles::AvatarsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Profiles::EmailsController do describe Profiles::EmailsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Profiles::KeysController do describe Profiles::KeysController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Profiles::NotificationsController do describe Profiles::NotificationsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Profiles::PersonalAccessTokensController do describe Profiles::PersonalAccessTokensController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Profiles::PreferencesController do describe Profiles::PreferencesController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Profiles::TwoFactorAuthsController do describe Profiles::TwoFactorAuthsController do
......
# frozen_string_literal: true
require('spec_helper') require('spec_helper')
describe ProfilesController, :request_store do describe ProfilesController, :request_store do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::ArtifactsController do describe Projects::ArtifactsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::AvatarsController do describe Projects::AvatarsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::BadgesController do describe Projects::BadgesController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::BlameController do describe Projects::BlameController do
......
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Projects::BlobController do describe Projects::BlobController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::BoardsController do describe Projects::BoardsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::BranchesController do describe Projects::BranchesController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::Ci::LintsController do describe Projects::Ci::LintsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::CommitController do describe Projects::CommitController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::CommitsController do describe Projects::CommitsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::CompareController do describe Projects::CompareController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::CycleAnalyticsController do describe Projects::CycleAnalyticsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::DeployKeysController do describe Projects::DeployKeysController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::DeploymentsController do describe Projects::DeploymentsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::DiscussionsController do describe Projects::DiscussionsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::EnvironmentsController do describe Projects::EnvironmentsController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::FindFileController do describe Projects::FindFileController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Projects::ForksController do describe Projects::ForksController do
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment