summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-04-22 22:05:34 +0200
committerTomasz Maczukin <tomasz@maczukin.pl>2016-04-22 22:08:38 +0200
commit9a1b174d5c126eeaa98da52a0622e0ed942eb3f5 (patch)
tree93b4351171ae3ef386f35f6eaee475af00d508c5
parenta2e29896378157070c0d0e00274cc881b3b2bc90 (diff)
downloadgitlab-ce-9a1b174d5c126eeaa98da52a0622e0ed942eb3f5.tar.gz
Fix some typos
-rw-r--r--lib/ci/gitlab_ci_yaml_processor.rb2
-rw-r--r--spec/lib/ci/gitlab_ci_yaml_processor_spec.rb12
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
<<EOT
job1: &JOBTMPL
@@ -740,7 +740,7 @@ EOT
it_behaves_like 'job_templates_handling'
end
- context 'When template is a hidden job' do
+ context 'when template is a hidden job' do
let(:config) do
<<EOT
.template: &JOBTMPL
@@ -756,7 +756,7 @@ EOT
it_behaves_like 'job_templates_handling'
end
- context "When job adds it's own keys to a template definition" do
+ context 'when job adds its own keys to a template definition' do
let(:config) do
<<EOT
.template: &JOBTMPL