Fix pipeline predefined variables specs

This commit is contained in:
Grzegorz Bizon 2018-03-14 12:48:13 +01:00
parent a499367d6d
commit a830c49a3f
1 changed files with 1 additions and 1 deletions

View File

@ -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