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
d762ddf0
Commit
d762ddf0
authored
Dec 02, 2021
by
Siddharth Asthana
Committed by
Peter Leitzen
Feb 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Style/OpenStructUse offenses for import service and spec helpers
Changelog: other
parent
f2c2b556
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
6 deletions
+3
-6
.rubocop_todo/style/open_struct_use.yml
.rubocop_todo/style/open_struct_use.yml
+0
-3
spec/services/projects/import_service_spec.rb
spec/services/projects/import_service_spec.rb
+1
-1
spec/support/helpers/import_spec_helper.rb
spec/support/helpers/import_spec_helper.rb
+1
-1
spec/support/helpers/login_helpers.rb
spec/support/helpers/login_helpers.rb
+1
-1
No files found.
.rubocop_todo/style/open_struct_use.yml
View file @
d762ddf0
...
...
@@ -26,8 +26,5 @@ Style/OpenStructUse:
-
spec/lib/gitlab/gitaly_client/diff_stitcher_spec.rb
-
spec/lib/gitlab/legacy_github_import/project_creator_spec.rb
-
spec/lib/gitlab/quick_actions/command_definition_spec.rb
-
spec/services/projects/import_service_spec.rb
-
spec/services/system_note_service_spec.rb
-
spec/support/helpers/import_spec_helper.rb
-
spec/support/helpers/login_helpers.rb
-
spec/support/helpers/repo_helpers.rb
spec/services/projects/import_service_spec.rb
View file @
d762ddf0
...
...
@@ -298,7 +298,7 @@ RSpec.describe Projects::ImportService do
end
def
stub_github_omniauth_provider
provider
=
OpenStruct
.
new
(
provider
=
ActiveSupport
::
InheritableOptions
.
new
(
'name'
=>
'github'
,
'app_id'
=>
'asd123'
,
'app_secret'
=>
'asd123'
,
...
...
spec/support/helpers/import_spec_helper.rb
View file @
d762ddf0
...
...
@@ -25,7 +25,7 @@ module ImportSpecHelper
end
def
stub_omniauth_provider
(
name
)
provider
=
OpenStruct
.
new
(
provider
=
ActiveSupport
::
InheritableOptions
.
new
(
name:
name
,
app_id:
'asd123'
,
app_secret:
'asd123'
...
...
spec/support/helpers/login_helpers.rb
View file @
d762ddf0
...
...
@@ -178,7 +178,7 @@ module LoginHelpers
end
def
mock_saml_config
OpenStruct
.
new
(
name:
'saml'
,
label:
'saml'
,
args:
{
ActiveSupport
::
InheritableOptions
.
new
(
name:
'saml'
,
label:
'saml'
,
args:
{
assertion_consumer_service_url:
'https://localhost:3443/users/auth/saml/callback'
,
idp_cert_fingerprint:
'26:43:2C:47:AF:F0:6B:D0:07:9C:AD:A3:74:FE:5D:94:5F:4E:9E:52'
,
idp_sso_target_url:
'https://idp.example.com/sso/saml'
,
...
...
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