diff options
author | Quang-Minh Nguyen <qmnguyen@gitlab.com> | 2022-10-31 19:58:10 +0300 |
---|---|---|
committer | Quang-Minh Nguyen <qmnguyen@gitlab.com> | 2022-10-31 20:21:08 +0300 |
commit | a238cbfb8fd039b2fed350aa81f0c0154d9a01f5 (patch) | |
tree | 776847ab602d962e43568059ba2b41e166711ba5 /ruby/spec/lib/gitlab/git/push_options_spec.rb | |
parent | 4440aae1c028c263b37ee6f149f11179d22147f8 (diff) |
ruby: Remove ruby/lib/gitlab/git/*
Those classes wrap around rugged data and provide some advanced
sugar-coating methods. Both FindLicense and gitaly-linguist use the
underlying gems exclusively. Those wrappers become obsolete now.
Changelog: other
Diffstat (limited to 'ruby/spec/lib/gitlab/git/push_options_spec.rb')
-rw-r--r-- | ruby/spec/lib/gitlab/git/push_options_spec.rb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/ruby/spec/lib/gitlab/git/push_options_spec.rb b/ruby/spec/lib/gitlab/git/push_options_spec.rb deleted file mode 100644 index d2c74f399..000000000 --- a/ruby/spec/lib/gitlab/git/push_options_spec.rb +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -describe Gitlab::Git::PushOptions do - subject { described_class.new(options) } - - describe '#env_data' do - context 'when push options are set' do - let(:options) { ['ci.skip', 'test=value'] } - - it 'sets GIT_PUSH_OPTION environment variables' do - env_data = subject.env_data - - expect(env_data.count).to eq(3) - expect(env_data['GIT_PUSH_OPTION_COUNT']).to eq('2') - expect(env_data['GIT_PUSH_OPTION_0']).to eq('ci.skip') - expect(env_data['GIT_PUSH_OPTION_1']).to eq('test=value') - end - end - - context 'when push options are not set' do - let(:options) { [] } - - it 'does not set any variable' do - env_data = subject.env_data - - expect(env_data).to eq({}) - end - end - end -end |