diff options
author | Matija Čupić <matteeyah@gmail.com> | 2017-12-04 17:02:18 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2017-12-04 17:02:18 +0100 |
commit | f1357a1e15bead6b58c049357c765dd991c04d9b (patch) | |
tree | 709346bc20234117281b74ff4cd67390ba9ad737 /spec/controllers | |
parent | a42b43ce7a9146ac1035328f2bc1cfc5f06e9371 (diff) | |
download | gitlab-ce-f1357a1e15bead6b58c049357c765dd991c04d9b.tar.gz |
Remove references of project.cluster from specs
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects/clusters_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/projects/clusters_controller_spec.rb b/spec/controllers/projects/clusters_controller_spec.rb index 6ff52aff35a..1e546a66886 100644 --- a/spec/controllers/projects/clusters_controller_spec.rb +++ b/spec/controllers/projects/clusters_controller_spec.rb @@ -255,7 +255,7 @@ describe Projects::ClustersController do it 'creates a new cluster' do expect(ClusterProvisionWorker).to receive(:perform_async) expect { go }.to change { Clusters::Cluster.count } - expect(response).to redirect_to(project_cluster_path(project, project.cluster)) + expect(response).to redirect_to(project_cluster_path(project, project.clusters.last)) end end end @@ -422,7 +422,7 @@ describe Projects::ClustersController do go cluster.reload - expect(response).to redirect_to(project_cluster_path(project, project.cluster)) + expect(response).to redirect_to(project_cluster_path(project, cluster)) expect(flash[:notice]).to eq('Cluster was successfully updated.') expect(cluster.enabled).to be_falsey end |