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
f8a53eab
Commit
f8a53eab
authored
Dec 14, 2021
by
Siddharth Asthana
Committed by
Peter Leitzen
Dec 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Style/OpenStructUse offenses fogbugz_controller_spec
parent
073b67bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
.rubocop_todo/style/open_struct_use.yml
.rubocop_todo/style/open_struct_use.yml
+0
-1
spec/controllers/import/fogbugz_controller_spec.rb
spec/controllers/import/fogbugz_controller_spec.rb
+7
-4
No files found.
.rubocop_todo/style/open_struct_use.yml
View file @
f8a53eab
...
@@ -13,7 +13,6 @@ Style/OpenStructUse:
...
@@ -13,7 +13,6 @@ Style/OpenStructUse:
-
lib/gitlab/testing/request_inspector_middleware.rb
-
lib/gitlab/testing/request_inspector_middleware.rb
-
lib/mattermost/session.rb
-
lib/mattermost/session.rb
-
spec/controllers/groups/clusters_controller_spec.rb
-
spec/controllers/groups/clusters_controller_spec.rb
-
spec/controllers/import/fogbugz_controller_spec.rb
-
spec/controllers/import/gitlab_controller_spec.rb
-
spec/controllers/import/gitlab_controller_spec.rb
-
spec/controllers/projects/clusters_controller_spec.rb
-
spec/controllers/projects/clusters_controller_spec.rb
-
spec/factories/go_module_versions.rb
-
spec/factories/go_module_versions.rb
...
...
spec/controllers/import/fogbugz_controller_spec.rb
View file @
f8a53eab
...
@@ -79,15 +79,18 @@ RSpec.describe Import::FogbugzController do
...
@@ -79,15 +79,18 @@ RSpec.describe Import::FogbugzController do
end
end
describe
'GET status'
do
describe
'GET status'
do
let
(
:repo
)
do
instance_double
(
Gitlab
::
FogbugzImport
::
Repository
,
id:
'demo'
,
name:
'vim'
,
safe_name:
'vim'
,
path:
'vim'
)
end
before
do
before
do
@repo
=
OpenStruct
.
new
(
id:
'demo'
,
name:
'vim'
)
stub_client
(
valid?:
true
)
stub_client
(
valid?:
true
)
end
end
it_behaves_like
'import controller status'
do
it_behaves_like
'import controller status'
do
let
(
:repo
)
{
@repo
}
let
(
:repo_id
)
{
repo
.
id
}
let
(
:repo_id
)
{
@repo
.
id
}
let
(
:import_source
)
{
repo
.
name
}
let
(
:import_source
)
{
@repo
.
name
}
let
(
:provider_name
)
{
'fogbugz'
}
let
(
:provider_name
)
{
'fogbugz'
}
let
(
:client_repos_field
)
{
:repos
}
let
(
:client_repos_field
)
{
:repos
}
end
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