diff options
author | James Fargher <proglottis@gmail.com> | 2019-05-03 09:30:53 +1200 |
---|---|---|
committer | James Fargher <proglottis@gmail.com> | 2019-05-07 08:37:04 +1200 |
commit | c40a99a05842d0976dd1bca532fbc67c0ccee04d (patch) | |
tree | a3d126281982d9efa18aac1842ea5a6734d9fd8c /spec/controllers/admin | |
parent | 265dee5cc6a298370d708acdd11ee56997667332 (diff) | |
download | gitlab-ce-c40a99a05842d0976dd1bca532fbc67c0ccee04d.tar.gz |
Change specs to match gitlab code standards
Diffstat (limited to 'spec/controllers/admin')
-rw-r--r-- | spec/controllers/admin/clusters_controller_spec.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/controllers/admin/clusters_controller_spec.rb b/spec/controllers/admin/clusters_controller_spec.rb index e5fcc475d99..7b77cb186a4 100644 --- a/spec/controllers/admin/clusters_controller_spec.rb +++ b/spec/controllers/admin/clusters_controller_spec.rb @@ -12,7 +12,7 @@ describe Admin::ClustersController do sign_in(admin) end - describe 'GET index' do + describe 'GET #index' do def get_index(params = {}) get :index, params: params end @@ -22,7 +22,7 @@ describe Admin::ClustersController do stub_feature_flags(instance_clusters: false) end - it 'renders 404' do + it 'responds with not found' do get_index expect(response).to have_gitlab_http_status(404) @@ -90,7 +90,7 @@ describe Admin::ClustersController do end end - describe 'GET new' do + describe 'GET #new' do def get_new get :new end @@ -166,7 +166,7 @@ describe Admin::ClustersController do end end - describe 'POST create for new cluster' do + describe 'POST #create_gcp' do let(:legacy_abac_param) { 'true' } let(:params) do { @@ -251,7 +251,7 @@ describe Admin::ClustersController do end end - describe 'POST create for existing cluster' do + describe 'POST #create_user' do let(:params) do { cluster: { @@ -321,7 +321,7 @@ describe Admin::ClustersController do end end - describe 'GET cluster_status' do + describe 'GET #cluster_status' do let(:cluster) { create(:cluster, :providing_by_gcp, :instance) } def get_cluster_status @@ -354,7 +354,7 @@ describe Admin::ClustersController do end end - describe 'GET show' do + describe 'GET #show' do let(:cluster) { create(:cluster, :provided_by_gcp, :instance) } def get_show @@ -365,7 +365,7 @@ describe Admin::ClustersController do end describe 'functionality' do - it 'renders view' do + it 'responds successfully' do get_show expect(response).to have_gitlab_http_status(:ok) @@ -380,7 +380,7 @@ describe Admin::ClustersController do end end - describe 'PUT update' do + describe 'PUT #update' do def put_update(format: :html) put :update, params: params.merge( id: cluster, @@ -476,7 +476,7 @@ describe Admin::ClustersController do end end - describe 'DELETE destroy' do + describe 'DELETE #destroy' do let!(:cluster) { create(:cluster, :provided_by_gcp, :production_environment, :instance) } def delete_destroy |