fix spec failures
This commit is contained in:
parent
c90cfbd4ea
commit
c3d0545a98
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue