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
55535245
Commit
55535245
authored
Feb 08, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GCP cluster feature spec
parent
808ad123
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/features/projects/clusters/gcp_spec.rb
spec/features/projects/clusters/gcp_spec.rb
+2
-2
No files found.
spec/features/projects/clusters/gcp_spec.rb
View file @
55535245
...
@@ -25,7 +25,7 @@ feature 'Gcp Cluster', :js do
...
@@ -25,7 +25,7 @@ feature 'Gcp Cluster', :js do
context
'when user has a GCP project with billing enabled'
do
context
'when user has a GCP project with billing enabled'
do
before
do
before
do
allow_any_instance_of
(
Projects
::
Clusters
::
GcpController
).
to
receive
(
:authorize_google_project_billing
)
allow_any_instance_of
(
Projects
::
Clusters
::
GcpController
).
to
receive
(
:authorize_google_project_billing
)
allow_any_instance_of
(
Projects
::
Clusters
::
GcpController
).
to
receive
(
:google_project_billing_status
).
and_return
(
'true'
)
allow_any_instance_of
(
Projects
::
Clusters
::
GcpController
).
to
receive
(
:google_project_billing_status
).
and_return
(
true
)
end
end
context
'when user does not have a cluster and visits cluster index page'
do
context
'when user does not have a cluster and visits cluster index page'
do
...
@@ -134,7 +134,7 @@ feature 'Gcp Cluster', :js do
...
@@ -134,7 +134,7 @@ feature 'Gcp Cluster', :js do
context
'when user does not have a GCP project with billing enabled'
do
context
'when user does not have a GCP project with billing enabled'
do
before
do
before
do
allow_any_instance_of
(
Projects
::
Clusters
::
GcpController
).
to
receive
(
:authorize_google_project_billing
)
allow_any_instance_of
(
Projects
::
Clusters
::
GcpController
).
to
receive
(
:authorize_google_project_billing
)
allow_any_instance_of
(
Projects
::
Clusters
::
GcpController
).
to
receive
(
:google_project_billing_status
).
and_return
(
'false'
)
allow_any_instance_of
(
Projects
::
Clusters
::
GcpController
).
to
receive
(
:google_project_billing_status
).
and_return
(
false
)
visit
project_clusters_path
(
project
)
visit
project_clusters_path
(
project
)
...
...
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