diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-07-02 13:02:06 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-07-02 13:02:06 +0100 |
commit | 55e2df6c804202a39d0165289988062a693087aa (patch) | |
tree | 27e5e4c87bec9974a9b62632a41a803012cb4c4b /spec/controllers/projects/environments_controller_spec.rb | |
parent | 7923ad63c26d7d9575d4f449c420f9e8a9a0cb6b (diff) | |
download | gitlab-ce-55e2df6c804202a39d0165289988062a693087aa.tar.gz |
Fixes backend specs
Diffstat (limited to 'spec/controllers/projects/environments_controller_spec.rb')
-rw-r--r-- | spec/controllers/projects/environments_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/projects/environments_controller_spec.rb b/spec/controllers/projects/environments_controller_spec.rb index cb561e24762..63cef579864 100644 --- a/spec/controllers/projects/environments_controller_spec.rb +++ b/spec/controllers/projects/environments_controller_spec.rb @@ -283,13 +283,13 @@ describe Projects::EnvironmentsController do it 'redirects to environment if it exists' do environment = create(:environment, name: 'production', project: project) - get :metrics_redirect, environment_params + get :metrics_redirect, namespace_id: project.namespace, project_id: project expect(response).to redirect_to(environment_metrics_path(environment)) end it 'redirects to empty page if no environment exists' do - get :metrics_redirect, environment_params + get :metrics_redirect, namespace_id: project.namespace, project_id: project expect(response).to be_ok expect(response).to render_template 'empty' |