Commit 302b7f59 authored by gfyoung's avatar gfyoung Committed by Thong Kuah

Enable frozen string for spec/requests

Partially addresses:

https://gitlab.com/gitlab-org/gitlab/issues/27703
parent 55a6e05a
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::AccessRequests do describe API::AccessRequests do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Applications, :api do describe API::Applications, :api do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Avatar do describe API::Avatar do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::AwardEmoji do describe API::AwardEmoji do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Badges do describe API::Badges do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Boards do describe API::Boards do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Branches do describe API::Branches do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::BroadcastMessages do describe API::BroadcastMessages do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::CommitStatuses do describe API::CommitStatuses do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'mime/types' require 'mime/types'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::DeployKeys do describe API::DeployKeys do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Discussions do describe API::Discussions do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'doorkeeper access' do describe 'doorkeeper access' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Environments do describe API::Environments do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Events do describe API::Events do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Features do describe API::Features do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Files do describe API::Files do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'GitlabSchema configurations' do describe 'GitlabSchema configurations' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Setting WIP status of a merge request' do describe 'Setting WIP status of a merge request' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'getting an issue list for a project' do describe 'getting an issue list for a project' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'getting merge request information nested in a project' do describe 'getting merge request information nested in a project' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'getting project information' do describe 'getting project information' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::GroupBoards do describe API::GroupBoards do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::GroupMilestones do describe API::GroupMilestones do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::GroupVariables do describe API::GroupVariables do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Groups do describe API::Groups do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'raven/transports/dummy' require 'raven/transports/dummy'
require_relative '../../../config/initializers/sentry' require_relative '../../../config/initializers/sentry'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::ImportGithub do describe API::ImportGithub do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Internal::Base do describe API::Internal::Base do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Jobs do describe API::Jobs do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Keys do describe API::Keys do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Labels do describe API::Labels do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Lint do describe API::Lint do
......
# frozen_string_literal: true
require "spec_helper" require "spec_helper"
describe API::Markdown do describe API::Markdown do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Members do describe API::Members do
...@@ -24,7 +26,7 @@ describe API::Members do ...@@ -24,7 +26,7 @@ describe API::Members do
shared_examples 'GET /:source_type/:id/members/(all)' do |source_type, all| shared_examples 'GET /:source_type/:id/members/(all)' do |source_type, all|
let(:members_url) do let(:members_url) do
"/#{source_type.pluralize}/#{source.id}/members".tap do |url| (+"/#{source_type.pluralize}/#{source.id}/members").tap do |url|
url << "/all" if all url << "/all" if all
end end
end end
......
# frozen_string_literal: true
require "spec_helper" require "spec_helper"
describe API::MergeRequestDiffs, 'MergeRequestDiffs' do describe API::MergeRequestDiffs, 'MergeRequestDiffs' do
......
# frozen_string_literal: true
require "spec_helper" require "spec_helper"
describe API::MergeRequests do describe API::MergeRequests do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Namespaces do describe API::Namespaces do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Notes do describe API::Notes do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::NotificationSettings do describe API::NotificationSettings do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'OAuth tokens' do describe 'OAuth tokens' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe "Internal Project Pages Access" do describe "Internal Project Pages Access" do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe "Private Project Pages Access" do describe "Private Project Pages Access" do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe "Public Project Pages Access" do describe "Public Project Pages Access" do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::PagesDomains do describe API::PagesDomains do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::PipelineSchedules do describe API::PipelineSchedules do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::ProjectContainerRepositories do describe API::ProjectContainerRepositories do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::ProjectEvents do describe API::ProjectEvents do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::ProjectExport do describe API::ProjectExport do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::ProjectHooks, 'ProjectHooks' do describe API::ProjectHooks, 'ProjectHooks' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::ProjectImport do describe API::ProjectImport do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::ProjectMilestones do describe API::ProjectMilestones do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::ProjectSnapshots do describe API::ProjectSnapshots do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::ProjectSnippets do describe API::ProjectSnippets do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::ProjectTemplates do describe API::ProjectTemplates do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
shared_examples 'languages and percentages JSON response' do shared_examples 'languages and percentages JSON response' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::ProtectedBranches do describe API::ProtectedBranches do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::ProtectedTags do describe API::ProtectedTags do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Releases do describe API::Releases do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'mime/types' require 'mime/types'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Runner, :clean_gitlab_redis_shared_state do describe API::Runner, :clean_gitlab_redis_shared_state do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Runners do describe API::Runners do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Search do describe API::Search do
......
# frozen_string_literal: true
require "spec_helper" require "spec_helper"
describe API::Services do describe API::Services do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Settings, 'Settings' do describe API::Settings, 'Settings' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::SidekiqMetrics do describe API::SidekiqMetrics do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Snippets do describe API::Snippets do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::SystemHooks do describe API::SystemHooks do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Tags do describe API::Tags do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Templates do describe API::Templates do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Todos do describe API::Todos do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Triggers do describe API::Triggers do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Users do describe API::Users do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Variables do describe API::Variables do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::Version do describe API::Version do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
# For every API endpoint we test 3 states of wikis: # For every API endpoint we test 3 states of wikis:
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Git HTTP requests' do describe 'Git HTTP requests' 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 JwtController do describe JwtController do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Git LFS File Locking API' do describe 'Git LFS File Locking API' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'OAuth Tokens requests' do describe 'OAuth Tokens requests' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'OpenID Connect requests' do describe 'OpenID Connect requests' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'cycle analytics events' do describe 'cycle analytics events' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Rack Attack global throttles' do describe 'Rack Attack global throttles' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Request Profiler' do describe 'Request Profiler' 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