diff options
author | Nick Thomas <nick@gitlab.com> | 2019-10-14 16:00:48 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-10-15 07:44:13 +0100 |
commit | 18096b5440e0818605add32538751c6be38e8343 (patch) | |
tree | b4aebac9d7f752156ee4ec3d44ee990021a1b295 /spec/hooks_utils_spec.rb | |
parent | 8db304b4919519bca60a5b18ffe9b88dcde845af (diff) | |
download | gitlab-shell-18096b5440e0818605add32538751c6be38e8343.tar.gz |
Remove dead Ruby code
Diffstat (limited to 'spec/hooks_utils_spec.rb')
-rw-r--r-- | spec/hooks_utils_spec.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/hooks_utils_spec.rb b/spec/hooks_utils_spec.rb deleted file mode 100644 index 2113239..0000000 --- a/spec/hooks_utils_spec.rb +++ /dev/null @@ -1,28 +0,0 @@ -require_relative 'spec_helper' -require_relative '../lib/hooks_utils.rb' - -describe :get_push_options do - context "when GIT_PUSH_OPTION_COUNT is not set" do - it { expect(HooksUtils.get_push_options).to eq([]) } - end - - context "when one option is given" do - before do - ENV['GIT_PUSH_OPTION_COUNT'] = '1' - ENV['GIT_PUSH_OPTION_0'] = 'aaa' - end - - it { expect(HooksUtils.get_push_options).to eq(['aaa']) } - end - - context "when multiple options are given" do - before do - ENV['GIT_PUSH_OPTION_COUNT'] = '3' - ENV['GIT_PUSH_OPTION_0'] = 'aaa' - ENV['GIT_PUSH_OPTION_1'] = 'bbb' - ENV['GIT_PUSH_OPTION_2'] = 'ccc' - end - - it { expect(HooksUtils.get_push_options).to eq(['aaa', 'bbb', 'ccc']) } - end -end |