Commit 7fc0ca84 authored by Robert Speicher's avatar Robert Speicher

Resolve more MirrorsController spec failures due to missing anchor

parent 7024f4b6
......@@ -199,7 +199,7 @@ describe Projects::MirrorsController do
it 'processes a successful update' do
do_put(project, username_only_import_url: "https://updated.example.com")
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
end
......@@ -208,7 +208,7 @@ describe Projects::MirrorsController do
it 'processes an unsuccessful update' do
do_put(project, username_only_import_url: "ftp://invalid.invalid'")
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(/is blocked/)
end
end
......
......@@ -25,7 +25,7 @@ describe Projects::MirrorsController do
}
expect(response).to have_gitlab_http_status(302)
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 include("Import url can't be blank")
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment