Commit c32b2d3d authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'frozen-string-spec-some' into 'master'

Add some frozen string to spec/**/*.rb

See merge request gitlab-org/gitlab-ce!27341
parents d5e3677e 93a44e13
---
title: Add some frozen string to spec/**/*.rb
merge_request:
author: gfyoung
type: other
# frozen_string_literal: true
require 'spec_helper'
load File.expand_path('../../bin/changelog', __dir__)
......
# frozen_string_literal: true
require 'spec_helper'
describe 'mail_room.yml' do
......
# frozen_string_literal: true
require 'spec_helper'
require Rails.root.join('config', 'object_store_settings.rb')
......
# frozen_string_literal: true
require 'spec_helper'
describe Settings do
......
# frozen_string_literal: true
require 'spec_helper'
describe AbuseReportsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Admin::ApplicationSettingsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Admin::ApplicationsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Admin::DashboardController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Admin::GitalyServersController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Admin::GroupsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Admin::HealthCheckController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Admin::HooksController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Admin::IdentitiesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Admin::ImpersonationsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Admin::ProjectsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Admin::RunnersController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Admin::ServicesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Admin::SpamLogsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Admin::UsersController do
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
describe ApplicationController do
......
# frozen_string_literal: true
require 'spec_helper'
describe AutocompleteController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Boards::IssuesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Boards::ListsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe ChecksCollaboration do
......
# frozen_string_literal: true
require 'spec_helper'
describe ContinueParams do
......
# frozen_string_literal: true
require 'spec_helper'
describe ControllerWithCrossProjectAccessCheck do
......
# frozen_string_literal: true
require 'spec_helper'
describe GroupTree do
......
# frozen_string_literal: true
require 'spec_helper'
describe InternalRedirect do
......
# frozen_string_literal: true
require 'spec_helper'
describe IssuableCollections do
......
# frozen_string_literal: true
require 'spec_helper'
describe LfsRequest do
......
# frozen_string_literal: true
require 'spec_helper'
describe ProjectUnauthorized do
......
# frozen_string_literal: true
require 'spec_helper'
describe SendFileUpload do
......
# frozen_string_literal: true
require 'spec_helper'
describe Dashboard::GroupsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Dashboard::LabelsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Dashboard::MilestonesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Dashboard::ProjectsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Dashboard::TodosController do
......
# frozen_string_literal: true
require 'spec_helper'
describe DashboardController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Explore::GroupsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Explore::ProjectsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe GoogleApi::AuthorizationsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Groups::AvatarsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Groups::BoardsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Groups::ChildrenController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Groups::GroupMembersController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Groups::LabelsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Groups::MilestonesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Groups::RunnersController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Groups::Settings::CiCdController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Groups::SharedProjectsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Groups::UploadsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Groups::VariablesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe GroupsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe HealthCheckController do
......
# frozen_string_literal: true
require 'spec_helper'
describe HealthController do
......
# frozen_string_literal: true
require 'spec_helper'
describe HelpController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Import::BitbucketController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Import::BitbucketServerController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Import::FogbugzController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Import::GiteaController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Import::GithubController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Import::GitlabController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Import::GitlabProjectsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Import::GoogleCodeController do
......
# frozen_string_literal: true
require 'spec_helper'
describe InvitesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ldap::OmniauthCallbacksController do
......@@ -43,7 +45,7 @@ describe Ldap::OmniauthCallbacksController do
end
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)
......
# frozen_string_literal: true
require 'spec_helper'
describe MetricsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe NotificationSettingsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Oauth::ApplicationsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Oauth::AuthorizationsController do
......
# 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 }
......
# frozen_string_literal: true
require 'spec_helper'
describe PasswordsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Profiles::AccountsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Profiles::AvatarsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Profiles::EmailsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Profiles::KeysController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Profiles::NotificationsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Profiles::PersonalAccessTokensController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Profiles::PreferencesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Profiles::TwoFactorAuthsController do
......
# frozen_string_literal: true
require('spec_helper')
describe ProfilesController, :request_store do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::ArtifactsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::AvatarsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::BadgesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::BlameController do
......
# frozen_string_literal: true
require 'rails_helper'
describe Projects::BlobController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::BoardsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::BranchesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::Ci::LintsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::CommitController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::CommitsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::CompareController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::CycleAnalyticsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::DeployKeysController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::DeploymentsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::DiscussionsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::EnvironmentsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::FindFileController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::ForksController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::GraphsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::GroupLinksController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::HooksController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::ImportsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::IssuesController do
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
describe Projects::JobsController, :clean_gitlab_redis_shared_state do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::LabelsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::MattermostsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::MergeRequests::ConflictsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::MergeRequests::CreationsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::MergeRequests::DiffsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::MergeRequestsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::MilestonesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::MirrorsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::NotesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::PagesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::PagesDomainsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::PipelineSchedulesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::PipelinesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::PipelinesSettingsController do
......
# frozen_string_literal: true
require('spec_helper')
describe Projects::ProjectMembersController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::Prometheus::MetricsController do
......
# frozen_string_literal: true
require('spec_helper')
describe Projects::ProtectedBranchesController do
......
# frozen_string_literal: true
require('spec_helper')
describe Projects::ProtectedTagsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::RawController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::RefsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::Registry::RepositoriesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::Registry::TagsController do
......
# frozen_string_literal: true
require "spec_helper"
describe Projects::RepositoriesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::RunnersController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::ServicesController do
......
# frozen_string_literal: true
require('spec_helper')
describe Projects::Settings::CiCdController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::Settings::IntegrationsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::Settings::RepositoryController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::SnippetsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::TagsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::TemplatesController do
......
# frozen_string_literal: true
require('spec_helper')
describe Projects::TodosController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::TreeController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::UploadsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::VariablesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::WikisController do
......
# frozen_string_literal: true
require('spec_helper')
describe ProjectsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe RegistrationsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe RootController do
......
# frozen_string_literal: true
require 'spec_helper'
describe SearchController do
......
# frozen_string_literal: true
require 'rails_helper'
describe SentNotificationsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe SessionsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Snippets::NotesController do
......
# frozen_string_literal: true
require 'spec_helper'
describe SnippetsController do
......
# frozen_string_literal: true
require 'spec_helper'
shared_examples 'content not cached without revalidation' do
it 'ensures content will not be cached without revalidation' do
......
# frozen_string_literal: true
require 'spec_helper'
describe UserCalloutsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe Users::TermsController do
......
# frozen_string_literal: true
require 'spec_helper'
describe UsersController do
......
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