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
......
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