summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-10-12 17:10:28 +0200
committerJacob Vosmaer <jacob@gitlab.com>2017-10-12 17:10:28 +0200
commit1f0ff893898c01e77f1f5a45e2547c8a9022bcbd (patch)
tree5829b323002c43fa9cbc60b1617ff881967317fd
parent0d62129e1f12d866b2a4dd49433f166a61e921a1 (diff)
downloadgitlab-ce-git-env-handle-arrays.tar.gz
-rw-r--r--spec/lib/gitlab/git/env_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/lib/gitlab/git/env_spec.rb b/spec/lib/gitlab/git/env_spec.rb
index 24cb6de3009..03836d49518 100644
--- a/spec/lib/gitlab/git/env_spec.rb
+++ b/spec/lib/gitlab/git/env_spec.rb
@@ -58,13 +58,13 @@ describe Gitlab::Git::Env do
let(:key) { 'GIT_OBJECT_DIRECTORY' }
subject { described_class.to_env_hash }
-
+
where(:input, :output) do
- nil | nil
- 'foo' | 'foo'
- [] | ''
- ['foo'] | 'foo'
- ['foo', 'bar'] | 'foo:bar'
+ nil | nil
+ 'foo' | 'foo'
+ [] | ''
+ ['foo'] | 'foo'
+ %w[foo bar] | 'foo:bar'
end
with_them do