diff options
author | Dennis Tang <dtang@gitlab.com> | 2018-06-06 08:43:31 -0700 |
---|---|---|
committer | Dennis Tang <dtang@gitlab.com> | 2018-06-06 08:43:31 -0700 |
commit | cc0305565704e8f713cd615f5a6767498bd03706 (patch) | |
tree | 4b19f53352d05323adef5d0f4796bed4013b575b /spec/features/projects | |
parent | f00c1b7f47a1cd9492ea5170eeea96a9d654590e (diff) | |
download | gitlab-ce-cc0305565704e8f713cd615f5a6767498bd03706.tar.gz |
fix gcp_spec.rb
Diffstat (limited to 'spec/features/projects')
-rw-r--r-- | spec/features/projects/clusters/gcp_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/features/projects/clusters/gcp_spec.rb b/spec/features/projects/clusters/gcp_spec.rb index 0ebe3459a65..31c0735f577 100644 --- a/spec/features/projects/clusters/gcp_spec.rb +++ b/spec/features/projects/clusters/gcp_spec.rb @@ -20,6 +20,10 @@ feature 'Gcp Cluster', :js do .to receive(:token_in_session).and_return('token') allow_any_instance_of(Projects::ClustersController) .to receive(:expires_at_in_session).and_return(1.hour.since.to_i.to_s) + allow_any_instance_of(Projects::Clusters::GcpController) + .to receive(:token_in_session).and_return('token') + allow_any_instance_of(Projects::Clusters::GcpController) + .to receive(:expires_at_in_session).and_return(1.hour.since.to_i.to_s) end context 'when user does not have a cluster and visits cluster index page' do |