diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2018-11-29 20:00:56 +0100 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2018-11-29 20:00:56 +0100 |
commit | 57ca2340edc4664729f3030f1a96081041493f4f (patch) | |
tree | 706f70e66aeefef1bd946dea454dc014a8701997 /spec/lib/gitlab/ci/variables/collection/item_spec.rb | |
parent | 0341cfd63efcfee7422f67dd3a83df1cf392740c (diff) | |
parent | b05a36430404aa8eaeeed8560ed03c18117f6d72 (diff) | |
download | gitlab-ce-57ca2340edc4664729f3030f1a96081041493f4f.tar.gz |
Merge branch 'master' into tatkins-installation-method-docs
Diffstat (limited to 'spec/lib/gitlab/ci/variables/collection/item_spec.rb')
-rw-r--r-- | spec/lib/gitlab/ci/variables/collection/item_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/ci/variables/collection/item_spec.rb b/spec/lib/gitlab/ci/variables/collection/item_spec.rb index e1e0582cd11..8bf44acb228 100644 --- a/spec/lib/gitlab/ci/variables/collection/item_spec.rb +++ b/spec/lib/gitlab/ci/variables/collection/item_spec.rb @@ -36,7 +36,7 @@ describe Gitlab::Ci::Variables::Collection::Item do shared_examples 'raises error for invalid type' do it do expect { described_class.new(key: variable_key, value: variable_value) } - .to raise_error ArgumentError, /`#{variable_key}` must be of type String, while it was:/ + .to raise_error ArgumentError, /`#{variable_key}` must be of type String or nil value, while it was:/ end end @@ -46,7 +46,7 @@ describe Gitlab::Ci::Variables::Collection::Item do let(:variable_value) { nil } let(:expected_value) { nil } - it_behaves_like 'raises error for invalid type' + it_behaves_like 'creates variable' end context "when it's an empty string" do |