BigW Consortium Gitlab

Commit 1652e68a by 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 c9da377d
...@@ -42,7 +42,7 @@ namespace :gitlab do ...@@ -42,7 +42,7 @@ namespace :gitlab do
http_clone_url = project.http_url_to_repo http_clone_url = project.http_url_to_repo
ssh_clone_url = project.ssh_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'] } omniauth_providers.map! { |provider| provider['name'] }
puts "" 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