From a830c49a3fcf684f89ea5068bbca8ccc1b83fc4c Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Wed, 14 Mar 2018 12:48:13 +0100 Subject: [PATCH] Fix pipeline predefined variables specs --- spec/models/ci/pipeline_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb index e70892b5c76..4635f8cfe9d 100644 --- a/spec/models/ci/pipeline_spec.rb +++ b/spec/models/ci/pipeline_spec.rb @@ -171,7 +171,7 @@ describe Ci::Pipeline, :mailer do subject { pipeline.predefined_variables } it 'includes all predefined variables in a valid order' do - keys = subject.map { |variable| variable.fetch(:key) } + keys = subject.map { |variable| variable[:key] } expect(keys).to eq %w[CI_PIPELINE_ID CI_CONFIG_PATH CI_PIPELINE_SOURCE] end