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
8e3eead3
Commit
8e3eead3
authored
Apr 10, 2021
by
Huzaifa Iftikhar
Committed by
Dmitry Gruzd
Apr 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix EmptyLineAfterFinalLetItBe offenses in spec/lib/gitlab/auth
parent
3c2c533b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
4 deletions
+10
-4
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-4
changelogs/unreleased/issue-325836-fix-empty-line-after-let-it-be-gitlab-auth.yml
...sue-325836-fix-empty-line-after-let-it-be-gitlab-auth.yml
+5
-0
spec/lib/gitlab/auth/otp/strategies/devise_spec.rb
spec/lib/gitlab/auth/otp/strategies/devise_spec.rb
+1
-0
spec/lib/gitlab/auth/otp/strategies/forti_authenticator_spec.rb
...ib/gitlab/auth/otp/strategies/forti_authenticator_spec.rb
+1
-0
spec/lib/gitlab/auth/otp/strategies/forti_token_cloud_spec.rb
.../lib/gitlab/auth/otp/strategies/forti_token_cloud_spec.rb
+1
-0
spec/lib/gitlab/auth_spec.rb
spec/lib/gitlab/auth_spec.rb
+2
-0
No files found.
.rubocop_manual_todo.yml
View file @
8e3eead3
...
@@ -759,10 +759,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
...
@@ -759,10 +759,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
-
spec/lib/bulk_imports/groups/loaders/group_loader_spec.rb
-
spec/lib/bulk_imports/groups/loaders/group_loader_spec.rb
-
spec/lib/extracts_path_spec.rb
-
spec/lib/extracts_path_spec.rb
-
spec/lib/extracts_ref_spec.rb
-
spec/lib/extracts_ref_spec.rb
-
spec/lib/gitlab/auth/otp/strategies/devise_spec.rb
-
spec/lib/gitlab/auth/otp/strategies/forti_authenticator_spec.rb
-
spec/lib/gitlab/auth/otp/strategies/forti_token_cloud_spec.rb
-
spec/lib/gitlab/auth_spec.rb
-
spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb
-
spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb
-
spec/lib/gitlab/ci/build/policy/changes_spec.rb
-
spec/lib/gitlab/ci/build/policy/changes_spec.rb
-
spec/lib/gitlab/ci/config/external/file/local_spec.rb
-
spec/lib/gitlab/ci/config/external/file/local_spec.rb
...
...
changelogs/unreleased/issue-325836-fix-empty-line-after-let-it-be-gitlab-auth.yml
0 → 100644
View file @
8e3eead3
---
title
:
Fix EmptyLineAfterFinalLetItBe offenses in spec/lib/gitlab/auth
merge_request
:
58246
author
:
Huzaifa Iftikhar @huzaifaiftikhar
type
:
fixed
spec/lib/gitlab/auth/otp/strategies/devise_spec.rb
View file @
8e3eead3
...
@@ -4,6 +4,7 @@ require 'spec_helper'
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Auth
::
Otp
::
Strategies
::
Devise
do
RSpec
.
describe
Gitlab
::
Auth
::
Otp
::
Strategies
::
Devise
do
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:otp_code
)
{
42
}
let
(
:otp_code
)
{
42
}
subject
(
:validate
)
{
described_class
.
new
(
user
).
validate
(
otp_code
)
}
subject
(
:validate
)
{
described_class
.
new
(
user
).
validate
(
otp_code
)
}
...
...
spec/lib/gitlab/auth/otp/strategies/forti_authenticator_spec.rb
View file @
8e3eead3
...
@@ -4,6 +4,7 @@ require 'spec_helper'
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Auth
::
Otp
::
Strategies
::
FortiAuthenticator
do
RSpec
.
describe
Gitlab
::
Auth
::
Otp
::
Strategies
::
FortiAuthenticator
do
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:otp_code
)
{
42
}
let
(
:otp_code
)
{
42
}
let
(
:host
)
{
'forti_authenticator.example.com'
}
let
(
:host
)
{
'forti_authenticator.example.com'
}
...
...
spec/lib/gitlab/auth/otp/strategies/forti_token_cloud_spec.rb
View file @
8e3eead3
...
@@ -4,6 +4,7 @@ require 'spec_helper'
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Auth
::
Otp
::
Strategies
::
FortiTokenCloud
do
RSpec
.
describe
Gitlab
::
Auth
::
Otp
::
Strategies
::
FortiTokenCloud
do
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:otp_code
)
{
42
}
let
(
:otp_code
)
{
42
}
let
(
:url
)
{
'https://ftc.example.com:9696/api/v1'
}
let
(
:url
)
{
'https://ftc.example.com:9696/api/v1'
}
...
...
spec/lib/gitlab/auth_spec.rb
View file @
8e3eead3
...
@@ -4,6 +4,7 @@ require 'spec_helper'
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Auth
,
:use_clean_rails_memory_store_caching
do
RSpec
.
describe
Gitlab
::
Auth
,
:use_clean_rails_memory_store_caching
do
let_it_be
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:project
)
{
create
(
:project
)
}
let
(
:gl_auth
)
{
described_class
}
let
(
:gl_auth
)
{
described_class
}
describe
'constants'
do
describe
'constants'
do
...
@@ -543,6 +544,7 @@ RSpec.describe Gitlab::Auth, :use_clean_rails_memory_store_caching do
...
@@ -543,6 +544,7 @@ RSpec.describe Gitlab::Auth, :use_clean_rails_memory_store_caching do
context
'and belong to different projects'
do
context
'and belong to different projects'
do
let_it_be
(
:other_project
)
{
create
(
:project
)
}
let_it_be
(
:other_project
)
{
create
(
:project
)
}
let!
(
:read_registry
)
{
create
(
:deploy_token
,
username:
'deployer'
,
read_repository:
false
,
projects:
[
project
])
}
let!
(
:read_registry
)
{
create
(
:deploy_token
,
username:
'deployer'
,
read_repository:
false
,
projects:
[
project
])
}
let!
(
:read_repository
)
{
create
(
:deploy_token
,
username:
read_registry
.
username
,
read_registry:
false
,
projects:
[
other_project
])
}
let!
(
:read_repository
)
{
create
(
:deploy_token
,
username:
read_registry
.
username
,
read_registry:
false
,
projects:
[
other_project
])
}
let
(
:auth_success
)
{
Gitlab
::
Auth
::
Result
.
new
(
read_repository
,
other_project
,
:deploy_token
,
[
:download_code
])
}
let
(
:auth_success
)
{
Gitlab
::
Auth
::
Result
.
new
(
read_repository
,
other_project
,
:deploy_token
,
[
:download_code
])
}
...
...
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