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
4b68ce23
Commit
4b68ce23
authored
Dec 02, 2021
by
Siddharth Asthana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Style/OpenStructUse offenses
Changelog: other
parent
ff1caa45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
.rubocop_todo/style/open_struct_use.yml
.rubocop_todo/style/open_struct_use.yml
+0
-1
spec/dependencies/omniauth_saml_spec.rb
spec/dependencies/omniauth_saml_spec.rb
+1
-1
No files found.
.rubocop_todo/style/open_struct_use.yml
View file @
4b68ce23
...
...
@@ -19,7 +19,6 @@ Style/OpenStructUse:
-
spec/controllers/import/fogbugz_controller_spec.rb
-
spec/controllers/import/gitlab_controller_spec.rb
-
spec/controllers/projects/clusters_controller_spec.rb
-
spec/dependencies/omniauth_saml_spec.rb
-
spec/factories/go_module_versions.rb
-
spec/factories/wiki_pages.rb
-
spec/features/projects/clusters/gcp_spec.rb
...
...
spec/dependencies/omniauth_saml_spec.rb
View file @
4b68ce23
...
...
@@ -7,7 +7,7 @@ RSpec.describe 'processing of SAMLResponse in dependencies' do
let
(
:mock_saml_response
)
{
File
.
read
(
'spec/fixtures/authentication/saml_response.xml'
)
}
let
(
:saml_strategy
)
{
OmniAuth
::
Strategies
::
SAML
.
new
({})
}
let
(
:session_mock
)
{
{}
}
let
(
:settings
)
{
OpenStruct
.
new
(
{
soft:
false
,
idp_cert_fingerprint:
'something'
})
}
let
(
:settings
)
{
double
(
'settings'
,
{
soft:
false
,
idp_cert_fingerprint:
'something'
})
}
let
(
:auth_hash
)
{
Gitlab
::
Auth
::
Saml
::
AuthHash
.
new
(
saml_strategy
)
}
subject
{
auth_hash
.
authn_context
}
...
...
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