summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-29 12:30:38 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-29 14:09:35 +0200
commita42cce1b966046c21ec48b18435d38e68a20f7fa (patch)
tree960bdf0cd19a9630bc8e883506a36cfd4b61e66b /spec
parent69dad9677c76564831204772b6fdbb079865cdee (diff)
downloadgitlab-ce-a42cce1b966046c21ec48b18435d38e68a20f7fa.tar.gz
Improve code, remove unused validator, improve names
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/ci/config/node/artifacts_spec.rb2
-rw-r--r--spec/lib/gitlab/ci/config/node/trigger_spec.rb (renamed from spec/lib/gitlab/ci/config/node/while_spec.rb)4
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/ci/config/node/artifacts_spec.rb b/spec/lib/gitlab/ci/config/node/artifacts_spec.rb
index beed29b18ae..c09a0a9c793 100644
--- a/spec/lib/gitlab/ci/config/node/artifacts_spec.rb
+++ b/spec/lib/gitlab/ci/config/node/artifacts_spec.rb
@@ -8,7 +8,7 @@ describe Gitlab::Ci::Config::Node::Artifacts do
let(:config) { { paths: %w[public/] } }
describe '#value' do
- it 'returns image string' do
+ it 'returns artifacs configuration' do
expect(entry.value).to eq config
end
end
diff --git a/spec/lib/gitlab/ci/config/node/while_spec.rb b/spec/lib/gitlab/ci/config/node/trigger_spec.rb
index aac2ed7b3db..a4a3e36754e 100644
--- a/spec/lib/gitlab/ci/config/node/while_spec.rb
+++ b/spec/lib/gitlab/ci/config/node/trigger_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'
-describe Gitlab::Ci::Config::Node::While do
+describe Gitlab::Ci::Config::Node::Trigger do
let(:entry) { described_class.new(config) }
describe 'validations' do
@@ -48,7 +48,7 @@ describe Gitlab::Ci::Config::Node::While do
describe '#errors' do
it 'saves errors' do
expect(entry.errors)
- .to include 'while config should be an array of strings or regexps'
+ .to include 'trigger config should be an array of strings or regexps'
end
end
end