Fix some typos
This commit is contained in:
parent
a2e2989637
commit
9a1b174d5c
|
@ -64,7 +64,7 @@ module Ci
|
||||||
@jobs = {}
|
@jobs = {}
|
||||||
|
|
||||||
@config.except!(*ALLOWED_YAML_KEYS)
|
@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?
|
raise ValidationError, "Please define at least one job" if @jobs.none?
|
||||||
end
|
end
|
||||||
|
|
|
@ -652,7 +652,7 @@ module Ci
|
||||||
subject { config_processor.builds_for_stage_and_ref("test", "master") }
|
subject { config_processor.builds_for_stage_and_ref("test", "master") }
|
||||||
|
|
||||||
shared_examples 'hidden_job_handling' do
|
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.size).to eq(1)
|
||||||
expect(subject.first).to eq({
|
expect(subject.first).to eq({
|
||||||
except: nil,
|
except: nil,
|
||||||
|
@ -669,7 +669,7 @@ module Ci
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'When hidden job have a script definition' do
|
context 'when hidden job have a script definition' do
|
||||||
let(:config) do
|
let(:config) do
|
||||||
YAML.dump({
|
YAML.dump({
|
||||||
'.hidden_job' => { image: 'ruby:2.1', script: 'test' },
|
'.hidden_job' => { image: 'ruby:2.1', script: 'test' },
|
||||||
|
@ -680,7 +680,7 @@ module Ci
|
||||||
it_behaves_like 'hidden_job_handling'
|
it_behaves_like 'hidden_job_handling'
|
||||||
end
|
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
|
let(:config) do
|
||||||
YAML.dump({
|
YAML.dump({
|
||||||
'.hidden_job' => { image: 'ruby:2.1' },
|
'.hidden_job' => { image: 'ruby:2.1' },
|
||||||
|
@ -726,7 +726,7 @@ module Ci
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'When template is a job' do
|
context 'when template is a job' do
|
||||||
let(:config) do
|
let(:config) do
|
||||||
<<EOT
|
<<EOT
|
||||||
job1: &JOBTMPL
|
job1: &JOBTMPL
|
||||||
|
@ -740,7 +740,7 @@ EOT
|
||||||
it_behaves_like 'job_templates_handling'
|
it_behaves_like 'job_templates_handling'
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'When template is a hidden job' do
|
context 'when template is a hidden job' do
|
||||||
let(:config) do
|
let(:config) do
|
||||||
<<EOT
|
<<EOT
|
||||||
.template: &JOBTMPL
|
.template: &JOBTMPL
|
||||||
|
@ -756,7 +756,7 @@ EOT
|
||||||
it_behaves_like 'job_templates_handling'
|
it_behaves_like 'job_templates_handling'
|
||||||
end
|
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
|
let(:config) do
|
||||||
<<EOT
|
<<EOT
|
||||||
.template: &JOBTMPL
|
.template: &JOBTMPL
|
||||||
|
|
Loading…
Reference in New Issue