Don't allow the `gitlab:env:info` rake task to mutate the list of omniauth providers.

- The test for `rake gitlab:env:info` executed the rake task, which mutated the
  list of omniauth providers, breaking subsequent tests relying on this list.

- I've changed the rake task to duplicate the providers list before modifying it.
This commit is contained in:
Timothy Andrew 2017-06-20 03:11:16 +00:00
parent 1e9dfb7399
commit 56754848dd
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ namespace :gitlab do
http_clone_url = project.http_url_to_repo
ssh_clone_url = project.ssh_url_to_repo
omniauth_providers = Gitlab.config.omniauth.providers
omniauth_providers = Gitlab.config.omniauth.providers.dup
omniauth_providers.map! { |provider| provider['name'] }
puts ""