diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-10-12 17:10:28 +0200 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-10-12 17:10:28 +0200 |
commit | 1f0ff893898c01e77f1f5a45e2547c8a9022bcbd (patch) | |
tree | 5829b323002c43fa9cbc60b1617ff881967317fd | |
parent | 0d62129e1f12d866b2a4dd49433f166a61e921a1 (diff) | |
download | gitlab-ce-git-env-handle-arrays.tar.gz |
rubocopgit-env-handle-arrays
-rw-r--r-- | spec/lib/gitlab/git/env_spec.rb | 12 |
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 |