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
c9cb2fed
Commit
c9cb2fed
authored
Dec 02, 2021
by
Siddharth Asthana
Committed by
Peter Leitzen
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Style/OpenStructUse offenses in group cluster controller specs
Changelog: other
parent
f536b8cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
.rubocop_todo/style/open_struct_use.yml
.rubocop_todo/style/open_struct_use.yml
+0
-1
spec/controllers/groups/clusters_controller_spec.rb
spec/controllers/groups/clusters_controller_spec.rb
+2
-1
No files found.
.rubocop_todo/style/open_struct_use.yml
View file @
c9cb2fed
...
@@ -12,7 +12,6 @@ Style/OpenStructUse:
...
@@ -12,7 +12,6 @@ Style/OpenStructUse:
-
lib/gitlab/import_export/after_export_strategies/base_after_export_strategy.rb
-
lib/gitlab/import_export/after_export_strategies/base_after_export_strategy.rb
-
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/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/factories/wiki_pages.rb
-
spec/factories/wiki_pages.rb
...
...
spec/controllers/groups/clusters_controller_spec.rb
View file @
c9cb2fed
...
@@ -309,7 +309,8 @@ RSpec.describe Groups::ClustersController do
...
@@ -309,7 +309,8 @@ RSpec.describe Groups::ClustersController do
.
to
receive
(
:expires_at_in_session
).
and_return
(
1
.
hour
.
since
.
to_i
.
to_s
)
.
to
receive
(
:expires_at_in_session
).
and_return
(
1
.
hour
.
since
.
to_i
.
to_s
)
allow_any_instance_of
(
GoogleApi
::
CloudPlatform
::
Client
)
allow_any_instance_of
(
GoogleApi
::
CloudPlatform
::
Client
)
.
to
receive
(
:projects_zones_clusters_create
)
do
.
to
receive
(
:projects_zones_clusters_create
)
do
OpenStruct
.
new
(
double
(
'instance'
,
self_link:
'projects/gcp-project-12345/zones/us-central1-a/operations/ope-123'
,
self_link:
'projects/gcp-project-12345/zones/us-central1-a/operations/ope-123'
,
status:
'RUNNING'
status:
'RUNNING'
)
)
...
...
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