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
e20818ec
Commit
e20818ec
authored
Dec 02, 2021
by
Siddharth Asthana
Committed by
Peter Leitzen
Jan 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Style/OpenStructUse offenses in gitlab_controller_spec
Changelog: other
parent
9680b880
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
.rubocop_todo/style/open_struct_use.yml
.rubocop_todo/style/open_struct_use.yml
+0
-1
spec/controllers/import/gitlab_controller_spec.rb
spec/controllers/import/gitlab_controller_spec.rb
+5
-4
No files found.
.rubocop_todo/style/open_struct_use.yml
View file @
e20818ec
...
...
@@ -13,7 +13,6 @@ Style/OpenStructUse:
-
lib/gitlab/testing/request_inspector_middleware.rb
-
lib/mattermost/session.rb
-
spec/controllers/groups/clusters_controller_spec.rb
-
spec/controllers/import/gitlab_controller_spec.rb
-
spec/controllers/projects/clusters_controller_spec.rb
-
spec/factories/go_module_versions.rb
-
spec/factories/wiki_pages.rb
...
...
spec/controllers/import/gitlab_controller_spec.rb
View file @
e20818ec
...
...
@@ -33,15 +33,16 @@ RSpec.describe Import::GitlabController do
end
describe
"GET status"
do
let
(
:repo_fake
)
{
Struct
.
new
(
:id
,
:path
,
:path_with_namespace
,
:web_url
,
keyword_init:
true
)
}
let
(
:repo
)
{
repo_fake
.
new
(
id:
1
,
path:
'vim'
,
path_with_namespace:
'asd/vim'
,
web_url:
'https://gitlab.com/asd/vim'
)
}
before
do
@repo
=
OpenStruct
.
new
(
id:
1
,
path:
'vim'
,
path_with_namespace:
'asd/vim'
,
web_url:
'https://gitlab.com/asd/vim'
)
assign_session_token
end
it_behaves_like
'import controller status'
do
let
(
:repo
)
{
@repo
}
let
(
:repo_id
)
{
@repo
.
id
}
let
(
:import_source
)
{
@repo
.
path_with_namespace
}
let
(
:repo_id
)
{
repo
.
id
}
let
(
:import_source
)
{
repo
.
path_with_namespace
}
let
(
:provider_name
)
{
'gitlab'
}
let
(
:client_repos_field
)
{
:projects
}
end
...
...
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