diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-06-26 12:36:16 +0300 |
---|---|---|
committer | Jose <jvargas@gitlab.com> | 2018-06-27 07:06:25 +0300 |
commit | 91463e52467d4b93d95693ac4eba1d5630ecdc98 (patch) | |
tree | dabe37b1c6a169d59e1611d17e0157cf0516e33b /spec/controllers | |
parent | c4df74d1e1ba53996c0d64a8f8ef91712bbecf75 (diff) |
Specify environment actions to distinguish between metrics and every other environment related actions
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects/environments_controller_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/controllers/projects/environments_controller_spec.rb b/spec/controllers/projects/environments_controller_spec.rb index 47d4942acbd..36ebbc8a016 100644 --- a/spec/controllers/projects/environments_controller_spec.rb +++ b/spec/controllers/projects/environments_controller_spec.rb @@ -277,6 +277,16 @@ describe Projects::EnvironmentsController do end end + describe 'GET #empty' do + it 'responds with HTML' do + get :empty, namespace_id: project.namespace, + project_id: project + + expect(response).to be_ok + expect(response).to render_template 'empty' + end + end + describe 'GET #metrics' do before do allow(controller).to receive(:environment).and_return(environment) |