Fix Rubocop
This commit is contained in:
parent
40f1859dc5
commit
90c09efe7e
4 changed files with 12 additions and 13 deletions
|
@ -89,11 +89,11 @@ describe Projects::Clusters::GcpController do
|
||||||
stub_google_api_expired_token
|
stub_google_api_expired_token
|
||||||
end
|
end
|
||||||
|
|
||||||
it { expect(go).to redirect_to(gcp_login_namespace_project_clusters_path(project.namespace, project)) }
|
it { expect(go).to redirect_to(gcp_login_project_clusters_path(project)) }
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when access token is not stored in session' do
|
context 'when access token is not stored in session' do
|
||||||
it { expect(go).to redirect_to(gcp_login_namespace_project_clusters_path(project.namespace, project)) }
|
it { expect(go).to redirect_to(gcp_login_project_clusters_path(project)) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -156,13 +156,13 @@ describe Projects::Clusters::GcpController do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'redirects to login page' do
|
it 'redirects to login page' do
|
||||||
expect(go).to redirect_to(gcp_login_namespace_project_clusters_path(project.namespace, project))
|
expect(go).to redirect_to(gcp_login_project_clusters_path(project))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when access token is not stored in session' do
|
context 'when access token is not stored in session' do
|
||||||
it 'redirects to login page' do
|
it 'redirects to login page' do
|
||||||
expect(go).to redirect_to(gcp_login_namespace_project_clusters_path(project.namespace, project))
|
expect(go).to redirect_to(gcp_login_project_clusters_path(project))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -230,8 +230,7 @@ describe Projects::ClustersController do
|
||||||
end
|
end
|
||||||
|
|
||||||
def go
|
def go
|
||||||
put :update, params.merge(
|
put :update, params.merge(namespace_id: project.namespace,
|
||||||
namespace_id: project.namespace,
|
|
||||||
project_id: project,
|
project_id: project,
|
||||||
id: cluster)
|
id: cluster)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue