diff options
author | Sarah Yasonik <syasonik@gitlab.com> | 2019-06-07 08:48:10 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-06-07 08:48:10 +0000 |
commit | 3f5447dbbd0a939943ee12903490c264d79d6d27 (patch) | |
tree | 1026dbfbf5a286a5b7557e575f76412a0cf0a1c7 /spec/controllers | |
parent | d842d80e30000b9efa57e8e69117431b38c6784a (diff) | |
download | gitlab-ce-3f5447dbbd0a939943ee12903490c264d79d6d27.tar.gz |
Remove metrics_time_window feature flag
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects/environments_controller_spec.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/controllers/projects/environments_controller_spec.rb b/spec/controllers/projects/environments_controller_spec.rb index d5eea5b0439..9699f2952f2 100644 --- a/spec/controllers/projects/environments_controller_spec.rb +++ b/spec/controllers/projects/environments_controller_spec.rb @@ -433,20 +433,6 @@ describe Projects::EnvironmentsController do end context 'when only one time param is provided' do - context 'when :metrics_time_window feature flag is disabled' do - before do - stub_feature_flags(metrics_time_window: false) - expect(environment).to receive(:additional_metrics).with(no_args).and_return(nil) - end - - it 'returns a time-window agnostic response' do - additional_metrics(start: '1552647300.651094') - - expect(response).to have_gitlab_http_status(204) - expect(json_response).to eq({}) - end - end - it 'raises an error when start is missing' do expect { additional_metrics(end: '1552647300.651094') } .to raise_error(ActionController::ParameterMissing) |