Fix overwritten project.cluster replacement

This commit is contained in:
Matija Čupić 2017-12-05 15:29:03 +01:00
parent 6a3372649a
commit f81503a061
No known key found for this signature in database
GPG key ID: 4BAF84FFACD2E5DE

View file

@ -205,7 +205,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