summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/ci/yaml_processor_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-12 06:07:42 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-12 06:07:42 +0000
commit8e22ef10e4f9c6d1ef2411aa26ddd0658e2f1461 (patch)
tree1ffd5ffed59b0f752fc358524f4d2170f6694cb9 /spec/lib/gitlab/ci/yaml_processor_spec.rb
parent2ccde70b80730fd52f75797e7d711748fb5b769b (diff)
downloadgitlab-ce-8e22ef10e4f9c6d1ef2411aa26ddd0658e2f1461.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/ci/yaml_processor_spec.rb')
-rw-r--r--spec/lib/gitlab/ci/yaml_processor_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/yaml_processor_spec.rb b/spec/lib/gitlab/ci/yaml_processor_spec.rb
index ff8849f84d5..fc57341b5bc 100644
--- a/spec/lib/gitlab/ci/yaml_processor_spec.rb
+++ b/spec/lib/gitlab/ci/yaml_processor_spec.rb
@@ -239,6 +239,21 @@ module Gitlab
end
end
end
+
+ describe 'resource group' do
+ context 'when resource group is defined' do
+ let(:config) do
+ YAML.dump(rspec: {
+ script: 'test',
+ resource_group: 'iOS'
+ })
+ end
+
+ it 'has the attributes' do
+ expect(subject[:resource_group_key]).to eq 'iOS'
+ end
+ end
+ end
end
describe '#stages_attributes' do