From 9a1b174d5c126eeaa98da52a0622e0ed942eb3f5 Mon Sep 17 00:00:00 2001 From: Tomasz Maczukin Date: Fri, 22 Apr 2016 22:05:34 +0200 Subject: [PATCH] Fix some typos --- lib/ci/gitlab_ci_yaml_processor.rb | 2 +- spec/lib/ci/gitlab_ci_yaml_processor_spec.rb | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb index f85c6494a70..504d3df9d34 100644 --- a/lib/ci/gitlab_ci_yaml_processor.rb +++ b/lib/ci/gitlab_ci_yaml_processor.rb @@ -64,7 +64,7 @@ module Ci @jobs = {} @config.except!(*ALLOWED_YAML_KEYS) - @config.each{ |name, param| add_job(name, param) } + @config.each { |name, param| add_job(name, param) } raise ValidationError, "Please define at least one job" if @jobs.none? end diff --git a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb index 7cccd37203e..c7ab3185378 100644 --- a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb +++ b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb @@ -652,7 +652,7 @@ module Ci subject { config_processor.builds_for_stage_and_ref("test", "master") } shared_examples 'hidden_job_handling' do - it "doesn't create jobs that starts with dot" do + it "doesn't create jobs that start with dot" do expect(subject.size).to eq(1) expect(subject.first).to eq({ except: nil, @@ -669,7 +669,7 @@ module Ci end end - context 'When hidden job have a script definition' do + context 'when hidden job have a script definition' do let(:config) do YAML.dump({ '.hidden_job' => { image: 'ruby:2.1', script: 'test' }, @@ -680,7 +680,7 @@ module Ci it_behaves_like 'hidden_job_handling' end - context "When hidden job doesn't have a script definition" do + context "when hidden job doesn't have a script definition" do let(:config) do YAML.dump({ '.hidden_job' => { image: 'ruby:2.1' }, @@ -726,7 +726,7 @@ module Ci end end - context 'When template is a job' do + context 'when template is a job' do let(:config) do <