Commit ef3e6785 authored by Stan Hu's avatar Stan Hu

Merge branch 'frozen_string_spec_lib' into 'master'

Add frozen_string_literal to spec/lib (part 1)

See merge request gitlab-org/gitlab-ce!31130
parents c712340f d9db8d85
# frozen_string_literal: true
require 'spec_helper'
describe AfterCommitQueue do
......
# frozen_string_literal: true
require 'spec_helper'
describe API::API do
......
# frozen_string_literal: true
require 'spec_helper'
describe API::Helpers::CustomValidators do
......
# frozen_string_literal: true
require 'spec_helper'
describe API::Helpers::Pagination do
......
# frozen_string_literal: true
require 'spec_helper'
describe API::Helpers::RelatedResourcesHelpers do
......
# frozen_string_literal: true
require 'spec_helper'
describe API::Helpers::Version do
......
# frozen_string_literal: true
require 'spec_helper'
describe API::Helpers do
......
# frozen_string_literal: true
require 'spec_helper'
describe Backup::Files do
......
# frozen_string_literal: true
require 'spec_helper'
describe Backup::Manager do
......
# frozen_string_literal: true
require 'spec_helper'
describe Backup::Repository do
......
# frozen_string_literal: true
require 'spec_helper'
describe Backup::Uploads do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::ColorParser do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::CommitRenderer do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::CrossProjectReference do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::AbsoluteLinkFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::AbstractReferenceFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::AsciiDocPostProcessingFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::AutolinkFilter do
......
# frozen_string_literal: true
require 'rails_helper'
describe Banzai::Filter::BlockquoteFenceFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::ColorFilter, lib: true do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::CommitRangeReferenceFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::CommitReferenceFilter do
......
# frozen_string_literal: true
require 'spec_helper'
require 'ffaker'
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::EmojiFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::ExternalIssueReferenceFilter do
......
# frozen_string_literal: true
require 'spec_helper'
shared_examples 'an external link with rel attribute' do
......
# frozen_string_literal: true
require 'rails_helper'
describe Banzai::Filter::FrontMatterFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::GollumTagsFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::HtmlEntityFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::ImageLazyLoadFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::ImageLinkFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::InlineDiffFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::IssuableStateFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::IssueReferenceFilter do
......
# frozen_string_literal: true
require 'spec_helper'
require 'html/pipeline'
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::MarkdownFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::MathFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::MergeRequestReferenceFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::MermaidFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::MilestoneReferenceFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::PlantumlFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::ReferenceFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::ReferenceRedactorFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::RelativeLinkFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::SanitizationFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::SnippetReferenceFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::SpacedLinkFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::SyntaxHighlightFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::TableOfContentsFilter do
......@@ -112,11 +114,11 @@ describe Banzai::Filter::TableOfContentsFilter do
context 'table of contents nesting' do
let(:results) do
result(
header(1, 'Header 1') <<
header(2, 'Header 1-1') <<
header(3, 'Header 1-1-1') <<
header(2, 'Header 1-2') <<
header(1, 'Header 2') <<
header(1, 'Header 1') +
header(2, 'Header 1-1') +
header(3, 'Header 1-1-1') +
header(2, 'Header 1-2') +
header(1, 'Header 2') +
header(2, 'Header 2-1')
)
end
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::UserReferenceFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::VideoLinkFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Filter::WikiLinkFilter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::FilterArray do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::IssuableExtractor do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::ObjectRenderer do
......
# frozen_string_literal: true
require 'rails_helper'
describe Banzai::Pipeline::DescriptionPipeline do
......
# frozen_string_literal: true
require 'rails_helper'
describe Banzai::Pipeline::EmailPipeline do
......
# frozen_string_literal: true
require 'rails_helper'
describe Banzai::Pipeline::FullPipeline do
......
# frozen_string_literal: true
require 'rails_helper'
describe Banzai::Pipeline::GfmPipeline do
......
# frozen_string_literal: true
require 'rails_helper'
describe Banzai::Pipeline::WikiPipeline do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Querying do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::ReferenceParser::BaseParser do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::ReferenceParser::CommitParser do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::ReferenceParser::CommitRangeParser do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::ReferenceParser::ExternalIssueParser do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::ReferenceParser::IssueParser do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::ReferenceParser::LabelParser do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::ReferenceParser::MergeRequestParser do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::ReferenceParser::MilestoneParser do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::ReferenceParser::SnippetParser do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::ReferenceParser::UserParser do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::ReferenceRedactor do
......
# frozen_string_literal: true
require 'spec_helper'
describe Banzai::Renderer do
......
# frozen_string_literal: true
require 'spec_helper'
# Emulates paginator. It returns 2 pages with results
......
# frozen_string_literal: true
require 'spec_helper'
describe Bitbucket::Connection do
......
# frozen_string_literal: true
require 'spec_helper'
describe Bitbucket::Page do
......
# frozen_string_literal: true
require 'spec_helper'
describe Bitbucket::Paginator do
......
# frozen_string_literal: true
require 'spec_helper'
describe Bitbucket::Representation::Comment do
......
# frozen_string_literal: true
require 'spec_helper'
describe Bitbucket::Representation::Issue do
......
# frozen_string_literal: true
require 'spec_helper'
describe Bitbucket::Representation::PullRequestComment do
......
# frozen_string_literal: true
require 'spec_helper'
describe Bitbucket::Representation::PullRequest do
......
# frozen_string_literal: true
require 'spec_helper'
describe Bitbucket::Representation::Repo do
......
# frozen_string_literal: true
require 'spec_helper'
describe Bitbucket::Representation::User do
......
# frozen_string_literal: true
require 'spec_helper'
describe BitbucketServer::Client do
......
# frozen_string_literal: true
require 'spec_helper'
describe BitbucketServer::Connection do
......
# frozen_string_literal: true
require 'spec_helper'
describe BitbucketServer::Page do
......
# frozen_string_literal: true
require 'spec_helper'
describe BitbucketServer::Paginator do
......
# frozen_string_literal: true
require 'spec_helper'
describe BitbucketServer::Representation::Activity do
......
# frozen_string_literal: true
require 'spec_helper'
describe BitbucketServer::Representation::Comment do
......
# frozen_string_literal: true
require 'spec_helper'
describe BitbucketServer::Representation::PullRequestComment do
......
# frozen_string_literal: true
require 'spec_helper'
describe BitbucketServer::Representation::PullRequest do
......
# frozen_string_literal: true
require 'spec_helper'
describe BitbucketServer::Representation::Repo do
......
# frozen_string_literal: true
require 'spec_helper'
describe Constraints::FeatureConstrainer do
......
# frozen_string_literal: true
require 'spec_helper'
describe Constraints::GroupUrlConstrainer do
......
# frozen_string_literal: true
require 'spec_helper'
describe Constraints::ProjectUrlConstrainer do
......
# frozen_string_literal: true
require 'spec_helper'
describe Constraints::UserUrlConstrainer do
......
# frozen_string_literal: true
require 'spec_helper'
describe ContainerRegistry::Blob do
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
describe ContainerRegistry::Client do
......
# frozen_string_literal: true
require 'spec_helper'
describe ContainerRegistry::Path do
......
# frozen_string_literal: true
require 'spec_helper'
describe ContainerRegistry::Registry do
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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