diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-04-20 20:08:38 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-04-20 20:14:43 +0300 |
commit | e3176c201420560ba5e2d1963bc28d08e1637b0d (patch) | |
tree | 00a31c322999a81784244ce29b6da169742d78de /spec/features | |
parent | 3b1612515ff291b6a97657dd53a8fed6d681d7db (diff) |
Store projects in ListGcpProjectsWorker
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/clusters/gcp_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/projects/clusters/gcp_spec.rb b/spec/features/projects/clusters/gcp_spec.rb index dfe8e02dce0..3937fed490c 100644 --- a/spec/features/projects/clusters/gcp_spec.rb +++ b/spec/features/projects/clusters/gcp_spec.rb @@ -24,8 +24,8 @@ feature 'Gcp Cluster', :js do context 'when user has a GCP project with billing enabled' 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(:google_project_billing_status).and_return(true) + allow_any_instance_of(Projects::Clusters::GcpController).to receive(:get_gcp_projects) + allow_any_instance_of(Projects::Clusters::GcpController).to receive(:gcp_projects).and_return([double]) end context 'when user does not have a cluster and visits cluster index page' do @@ -133,8 +133,8 @@ feature 'Gcp Cluster', :js do context 'when user does not have a GCP project with billing enabled' 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(:google_project_billing_status).and_return(false) + allow_any_instance_of(Projects::Clusters::GcpController).to receive(:get_gcp_projects) + allow_any_instance_of(Projects::Clusters::GcpController).to receive(:gcp_projects).and_return([]) visit project_clusters_path(project) @@ -153,8 +153,8 @@ feature 'Gcp Cluster', :js do context 'when gcp billing status is not in redis' 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(:google_project_billing_status).and_return(nil) + allow_any_instance_of(Projects::Clusters::GcpController).to receive(:get_gcp_projects) + allow_any_instance_of(Projects::Clusters::GcpController).to receive(:gcp_projects).and_return(nil) visit project_clusters_path(project) |