Commit eb7a76fd authored by Thong Kuah's avatar Thong Kuah

Merge branch 'frozen-string-enable-spec-lib-gitlab' into 'master'

Enable frozen string for spec/lib/gitlab

See merge request gitlab-org/gitlab!19746
parents 9d973fa3 89ac6543
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::ExclusiveLeaseHelpers, :clean_gitlab_redis_shared_state do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::ExclusiveLease, :clean_gitlab_redis_shared_state do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::ExternalAuthorization, :request_store do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::FakeApplicationSettings do
......
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::Favicon, :request_store do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::FileDetector do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::FileFinder do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::GitAccess do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::GitAccessWiki do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::GitRefValidator do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Git do
......
# frozen_string_literal: true
require 'spec_helper'
# We stub Gitaly in `spec/support/gitaly.rb` for other tests. We don't want
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::GithubImport do
......
# frozen_string_literal: true
require 'spec_helper'
describe ::Gitlab::GlRepository do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Gpg do
......@@ -63,7 +65,7 @@ describe Gitlab::Gpg do
it 'downcases the email' do
public_key = double(:key)
fingerprints = double(:fingerprints)
uid = double(:uid, name: 'Nannie Bernhard', email: 'NANNIE.BERNHARD@EXAMPLE.COM')
uid = double(:uid, name: +'Nannie Bernhard', email: +'NANNIE.BERNHARD@EXAMPLE.COM')
raw_key = double(:raw_key, uids: [uid])
allow(Gitlab::Gpg::CurrentKeyChain).to receive(:fingerprints_from_key).with(public_key).and_return(fingerprints)
allow(GPGME::Key).to receive(:find).with(:public, anything).and_return([raw_key])
......@@ -78,8 +80,8 @@ describe Gitlab::Gpg do
it 'rejects non UTF-8 names and addresses' do
public_key = double(:key)
fingerprints = double(:fingerprints)
email = "\xEEch@test.com".force_encoding('ASCII-8BIT')
uid = double(:uid, name: 'Test User', email: email)
email = (+"\xEEch@test.com").force_encoding('ASCII-8BIT')
uid = double(:uid, name: +'Test User', email: email)
raw_key = double(:raw_key, uids: [uid])
allow(Gitlab::Gpg::CurrentKeyChain).to receive(:fingerprints_from_key).with(public_key).and_return(fingerprints)
allow(GPGME::Key).to receive(:find).with(:public, anything).and_return([raw_key])
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::GroupSearchResults do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Highlight do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::HttpIO do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::HTTP do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::I18n do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Identifier do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::ImportSources do
......
# frozen_string_literal: true
require "spec_helper"
describe Gitlab::IncomingEmail do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::InsecureKeyFingerprint do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::IssuableMetadata do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::IssuableSorter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::IssuablesCountForState do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::JobWaiter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::JsonLogger do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Kubernetes do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::LanguageDetection do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Lazy do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::VisibilityLevelChecker 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