diff options
| -rw-r--r-- | spec/controllers/projects/deploy_keys_controller_spec.rb | 2 | ||||
| -rw-r--r-- | spec/controllers/projects/mirrors_controller_spec.rb | 4 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/spec/controllers/projects/deploy_keys_controller_spec.rb b/spec/controllers/projects/deploy_keys_controller_spec.rb index d2f133f972a..73bf169085f 100644 --- a/spec/controllers/projects/deploy_keys_controller_spec.rb +++ b/spec/controllers/projects/deploy_keys_controller_spec.rb @@ -19,7 +19,7 @@ describe Projects::DeployKeysController do        it 'redirects to blob' do          get :index, params -        expect(response).to redirect_to(namespace_project_settings_repository_path(params)) +        expect(response).to redirect_to(project_settings_repository_path(project, anchor: 'js-deploy-keys-settings'))        end      end diff --git a/spec/controllers/projects/mirrors_controller_spec.rb b/spec/controllers/projects/mirrors_controller_spec.rb index 5d64f362252..6114eef7003 100644 --- a/spec/controllers/projects/mirrors_controller_spec.rb +++ b/spec/controllers/projects/mirrors_controller_spec.rb @@ -36,7 +36,7 @@ describe Projects::MirrorsController do        it 'processes a successful update' do          do_put(project, remote_mirrors_attributes: remote_mirror_attributes) -        expect(response).to redirect_to(project_settings_repository_path(project)) +        expect(response).to redirect_to(project_settings_repository_path(project, anchor: 'js-push-remote-settings'))          expect(flash[:notice]).to match(/successfully updated/)        end @@ -53,7 +53,7 @@ describe Projects::MirrorsController do        it 'processes an unsuccessful update' do          do_put(project, remote_mirrors_attributes: remote_mirror_attributes) -        expect(response).to redirect_to(project_settings_repository_path(project)) +        expect(response).to redirect_to(project_settings_repository_path(project, anchor: 'js-push-remote-settings'))          expect(flash[:alert]).to match(/Only allowed protocols are/)        end | 
