Rename method that returns global envs in CI conf

This commit is contained in:
Grzegorz Bizon 2016-04-15 12:28:27 +02:00
parent b7946b50fc
commit 3dec6e2629
3 changed files with 3 additions and 3 deletions

View File

@ -372,7 +372,7 @@ module Ci
def global_yaml_variables
if commit.config_processor
commit.config_processor.variables.map do |key, value|
commit.config_processor.global_variables.map do |key, value|
{ key: key, value: value, public: true }
end
else

View File

@ -40,7 +40,7 @@ module Ci
@stages || DEFAULT_STAGES
end
def variables
def global_variables
@variables
end

View File

@ -359,7 +359,7 @@ module Ci
})
config_processor = GitlabCiYamlProcessor.new(config, path)
expect(config_processor.variables).to eq(variables)
expect(config_processor.global_variables).to eq(variables)
end
end