Commit d1dbd828 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'issue_344279_project_cluster_controller_spec' into 'master'

Fix Style/OpenStructUse offenses in project cluster_controller_spec

See merge request gitlab-org/gitlab!75214
parents 39e8ac1a 2f0a5890
...@@ -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/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/graphql/mutations/branches/create_spec.rb - spec/graphql/mutations/branches/create_spec.rb
......
...@@ -315,7 +315,8 @@ RSpec.describe Projects::ClustersController do ...@@ -315,7 +315,8 @@ RSpec.describe Projects::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(
'secure',
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'
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment