BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
db1b0e5b
Commit
db1b0e5b
authored
Dec 06, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix gcp|user_controller_specs
parent
dbb8644c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
gcp_controller_spec.rb
spec/controllers/projects/clusters/gcp_controller_spec.rb
+3
-3
user_controller_spec.rb
spec/controllers/projects/clusters/user_controller_spec.rb
+3
-1
No files found.
spec/controllers/projects/clusters/gcp_controller_spec.rb
View file @
db1b0e5b
...
...
@@ -143,9 +143,9 @@ describe Projects::Clusters::GcpController do
expect
(
ClusterProvisionWorker
).
to
receive
(
:perform_async
)
expect
{
go
}.
to
change
{
Clusters
::
Cluster
.
count
}
.
and
change
{
Clusters
::
Providers
::
Gcp
.
count
}
expect
(
response
).
to
redirect_to
(
project_cluster_path
(
project
,
project
.
cluster
))
expect
(
project
.
cluster
).
to
be_gcp
expect
(
project
.
cluster
).
to
be_kubernetes
expect
(
response
).
to
redirect_to
(
project_cluster_path
(
project
,
project
.
cluster
s
.
first
))
expect
(
project
.
cluster
s
.
first
).
to
be_gcp
expect
(
project
.
cluster
s
.
first
).
to
be_kubernetes
end
end
end
...
...
spec/controllers/projects/clusters/user_controller_spec.rb
View file @
db1b0e5b
...
...
@@ -64,7 +64,9 @@ describe Projects::Clusters::UserController do
expect
(
ClusterProvisionWorker
).
to
receive
(
:perform_async
)
expect
{
go
}.
to
change
{
Clusters
::
Cluster
.
count
}
.
and
change
{
Clusters
::
Platforms
::
Kubernetes
.
count
}
expect
(
response
).
to
redirect_to
(
project_cluster_path
(
project
,
project
.
cluster
))
expect
(
response
).
to
redirect_to
(
project_cluster_path
(
project
,
project
.
clusters
.
first
))
expect
(
project
.
clusters
.
first
).
to
be_user
expect
(
project
.
clusters
.
first
).
to
be_kubernetes
end
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