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
8ba3e473
Commit
8ba3e473
authored
Jan 11, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GCP Controller spec
parent
b8b2f5ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
spec/controllers/projects/clusters/gcp_controller_spec.rb
spec/controllers/projects/clusters/gcp_controller_spec.rb
+5
-1
No files found.
spec/controllers/projects/clusters/gcp_controller_spec.rb
View file @
8ba3e473
...
...
@@ -145,6 +145,7 @@ describe Projects::Clusters::GcpController do
end
it
'creates a new cluster'
do
expect
(
CheckGcpProjectBillingWorker
).
to
receive
(
:store_session_token
)
expect
(
ClusterProvisionWorker
).
to
receive
(
:perform_async
)
expect
{
go
}.
to
change
{
Clusters
::
Cluster
.
count
}
.
and
change
{
Clusters
::
Providers
::
Gcp
.
count
}
...
...
@@ -156,9 +157,12 @@ describe Projects::Clusters::GcpController do
context
'when google project billing is not enabled'
do
it
'renders the cluster form with an error'
do
expect
(
CheckGcpProjectBillingWorker
).
to
receive
(
:perform_async
)
expect
(
CheckGcpProjectBillingWorker
).
to
receive
(
:store_session_token
)
go
expect
(
response
).
to
set_flash
[
:
error
]
expect
(
response
).
to
set_flash
[
:
alert
]
expect
(
response
).
to
render_template
(
'new'
)
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