diff options
author | DJ Mountney <david@twkie.net> | 2016-08-10 16:53:52 -0700 |
---|---|---|
committer | DJ Mountney <david@twkie.net> | 2016-08-10 16:53:52 -0700 |
commit | 939cd374e7831d10b8e3c8b65dd9a2380e8f2393 (patch) | |
tree | 5eb23c7c98bfd400f16269a8f1c3e315aa455ddd /spec/gitlab_keys_spec.rb | |
parent | 1e3d15a71ed49a932c6539d1e783b5948f31192e (diff) | |
download | gitlab-shell-dup-frozen-argv-key.tar.gz |
In order to use chomp! on the input later, we need to dup the ARGV input string for keysdup-frozen-argv-key
Also updated the gitlab_key tests to freeze the ARGV variables.
Diffstat (limited to 'spec/gitlab_keys_spec.rb')
-rw-r--r-- | spec/gitlab_keys_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/gitlab_keys_spec.rb b/spec/gitlab_keys_spec.rb index d944278..67f9f40 100644 --- a/spec/gitlab_keys_spec.rb +++ b/spec/gitlab_keys_spec.rb @@ -284,7 +284,7 @@ describe GitlabKeys do def argv(*args) args.each_with_index do |arg, i| - ARGV[i] = arg + ARGV[i] = arg.freeze end end |