Commit 271bd93a authored by Timothy Andrew's avatar Timothy Andrew

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.
parent f681e41b
......@@ -53,7 +53,7 @@ namespace :gitlab do
'Undefined'.color(:red)
end
omniauth_providers = Gitlab.config.omniauth.providers
omniauth_providers = Gitlab.config.omniauth.providers.dup
omniauth_providers.map! { |provider| provider['name'] }
puts ""
......
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