Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
89ac6543
Commit
89ac6543
authored
Nov 08, 2019
by
gfyoung
Committed by
Thong Kuah
Nov 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable frozen string for spec/lib/gitlab
Partially addresses:
https://gitlab.com/gitlab-org/gitlab/issues/27703
parent
9d973fa3
Changes
33
Show whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
69 additions
and
3 deletions
+69
-3
spec/lib/gitlab/exclusive_lease_helpers_spec.rb
spec/lib/gitlab/exclusive_lease_helpers_spec.rb
+2
-0
spec/lib/gitlab/exclusive_lease_spec.rb
spec/lib/gitlab/exclusive_lease_spec.rb
+2
-0
spec/lib/gitlab/external_authorization_spec.rb
spec/lib/gitlab/external_authorization_spec.rb
+2
-0
spec/lib/gitlab/fake_application_settings_spec.rb
spec/lib/gitlab/fake_application_settings_spec.rb
+2
-0
spec/lib/gitlab/favicon_spec.rb
spec/lib/gitlab/favicon_spec.rb
+2
-0
spec/lib/gitlab/file_detector_spec.rb
spec/lib/gitlab/file_detector_spec.rb
+2
-0
spec/lib/gitlab/file_finder_spec.rb
spec/lib/gitlab/file_finder_spec.rb
+2
-0
spec/lib/gitlab/git_access_spec.rb
spec/lib/gitlab/git_access_spec.rb
+2
-0
spec/lib/gitlab/git_access_wiki_spec.rb
spec/lib/gitlab/git_access_wiki_spec.rb
+2
-0
spec/lib/gitlab/git_ref_validator_spec.rb
spec/lib/gitlab/git_ref_validator_spec.rb
+2
-0
spec/lib/gitlab/git_spec.rb
spec/lib/gitlab/git_spec.rb
+2
-0
spec/lib/gitlab/gitaly_client_spec.rb
spec/lib/gitlab/gitaly_client_spec.rb
+2
-0
spec/lib/gitlab/github_import_spec.rb
spec/lib/gitlab/github_import_spec.rb
+2
-0
spec/lib/gitlab/gl_repository_spec.rb
spec/lib/gitlab/gl_repository_spec.rb
+2
-0
spec/lib/gitlab/gpg_spec.rb
spec/lib/gitlab/gpg_spec.rb
+5
-3
spec/lib/gitlab/group_search_results_spec.rb
spec/lib/gitlab/group_search_results_spec.rb
+2
-0
spec/lib/gitlab/highlight_spec.rb
spec/lib/gitlab/highlight_spec.rb
+2
-0
spec/lib/gitlab/http_io_spec.rb
spec/lib/gitlab/http_io_spec.rb
+2
-0
spec/lib/gitlab/http_spec.rb
spec/lib/gitlab/http_spec.rb
+2
-0
spec/lib/gitlab/i18n_spec.rb
spec/lib/gitlab/i18n_spec.rb
+2
-0
spec/lib/gitlab/identifier_spec.rb
spec/lib/gitlab/identifier_spec.rb
+2
-0
spec/lib/gitlab/import_sources_spec.rb
spec/lib/gitlab/import_sources_spec.rb
+2
-0
spec/lib/gitlab/incoming_email_spec.rb
spec/lib/gitlab/incoming_email_spec.rb
+2
-0
spec/lib/gitlab/insecure_key_fingerprint_spec.rb
spec/lib/gitlab/insecure_key_fingerprint_spec.rb
+2
-0
spec/lib/gitlab/issuable_metadata_spec.rb
spec/lib/gitlab/issuable_metadata_spec.rb
+2
-0
spec/lib/gitlab/issuable_sorter_spec.rb
spec/lib/gitlab/issuable_sorter_spec.rb
+2
-0
spec/lib/gitlab/issuables_count_for_state_spec.rb
spec/lib/gitlab/issuables_count_for_state_spec.rb
+2
-0
spec/lib/gitlab/job_waiter_spec.rb
spec/lib/gitlab/job_waiter_spec.rb
+2
-0
spec/lib/gitlab/json_logger_spec.rb
spec/lib/gitlab/json_logger_spec.rb
+2
-0
spec/lib/gitlab/kubernetes_spec.rb
spec/lib/gitlab/kubernetes_spec.rb
+2
-0
spec/lib/gitlab/language_detection_spec.rb
spec/lib/gitlab/language_detection_spec.rb
+2
-0
spec/lib/gitlab/lazy_spec.rb
spec/lib/gitlab/lazy_spec.rb
+2
-0
spec/lib/gitlab/visibility_level_checker_spec.rb
spec/lib/gitlab/visibility_level_checker_spec.rb
+2
-0
No files found.
spec/lib/gitlab/exclusive_lease_helpers_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
ExclusiveLeaseHelpers
,
:clean_gitlab_redis_shared_state
do
...
...
spec/lib/gitlab/exclusive_lease_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
ExclusiveLease
,
:clean_gitlab_redis_shared_state
do
...
...
spec/lib/gitlab/external_authorization_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
ExternalAuthorization
,
:request_store
do
...
...
spec/lib/gitlab/fake_application_settings_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
FakeApplicationSettings
do
...
...
spec/lib/gitlab/favicon_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
RSpec
.
describe
Gitlab
::
Favicon
,
:request_store
do
...
...
spec/lib/gitlab/file_detector_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
FileDetector
do
...
...
spec/lib/gitlab/file_finder_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
FileFinder
do
...
...
spec/lib/gitlab/git_access_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
GitAccess
do
...
...
spec/lib/gitlab/git_access_wiki_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
GitAccessWiki
do
...
...
spec/lib/gitlab/git_ref_validator_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
GitRefValidator
do
...
...
spec/lib/gitlab/git_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
Git
do
...
...
spec/lib/gitlab/gitaly_client_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
# We stub Gitaly in `spec/support/gitaly.rb` for other tests. We don't want
...
...
spec/lib/gitlab/github_import_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
GithubImport
do
...
...
spec/lib/gitlab/gl_repository_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
::
Gitlab
::
GlRepository
do
...
...
spec/lib/gitlab/gpg_spec.rb
View file @
89ac6543
# 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
=
"
\xEE
ch@test.com"
.
force_encoding
(
'ASCII-8BIT'
)
uid
=
double
(
:uid
,
name:
'Test User'
,
email:
email
)
email
=
(
+
"
\xEE
ch@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
])
...
...
spec/lib/gitlab/group_search_results_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
GroupSearchResults
do
...
...
spec/lib/gitlab/highlight_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
Highlight
do
...
...
spec/lib/gitlab/http_io_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
HttpIO
do
...
...
spec/lib/gitlab/http_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
HTTP
do
...
...
spec/lib/gitlab/i18n_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
I18n
do
...
...
spec/lib/gitlab/identifier_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
Identifier
do
...
...
spec/lib/gitlab/import_sources_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
ImportSources
do
...
...
spec/lib/gitlab/incoming_email_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
"spec_helper"
describe
Gitlab
::
IncomingEmail
do
...
...
spec/lib/gitlab/insecure_key_fingerprint_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
InsecureKeyFingerprint
do
...
...
spec/lib/gitlab/issuable_metadata_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
IssuableMetadata
do
...
...
spec/lib/gitlab/issuable_sorter_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
IssuableSorter
do
...
...
spec/lib/gitlab/issuables_count_for_state_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
IssuablesCountForState
do
...
...
spec/lib/gitlab/job_waiter_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
JobWaiter
do
...
...
spec/lib/gitlab/json_logger_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
JsonLogger
do
...
...
spec/lib/gitlab/kubernetes_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
Kubernetes
do
...
...
spec/lib/gitlab/language_detection_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
LanguageDetection
do
...
...
spec/lib/gitlab/lazy_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
Lazy
do
...
...
spec/lib/gitlab/visibility_level_checker_spec.rb
View file @
89ac6543
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
VisibilityLevelChecker
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment