summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-06-07 12:53:46 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-06-07 12:53:46 +0200
commit5ef104df59211b022ed42e38e1cdbe950ff54388 (patch)
treefffe79c6a75b379a64adb600cfb027b037a95fb7 /spec/lib
parentfa097c678cdfead0dc1344e6d32569266da53465 (diff)
downloadgitlab-ce-5ef104df59211b022ed42e38e1cdbe950ff54388.tar.gz
Improve Ci config loader by changing method signaturerefactor/ci-config-add-facade
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/ci/config/loader_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/gitlab/ci/config/loader_spec.rb b/spec/lib/gitlab/ci/config/loader_spec.rb
index 6f1a10085dd..2d44b1f60f1 100644
--- a/spec/lib/gitlab/ci/config/loader_spec.rb
+++ b/spec/lib/gitlab/ci/config/loader_spec.rb
@@ -12,9 +12,9 @@ describe Gitlab::Ci::Config::Loader do
end
end
- describe '#load' do
+ describe '#load!' do
it 'returns a valid hash' do
- expect(loader.load).to eq(image: 'ruby:2.2')
+ expect(loader.load!).to eq(image: 'ruby:2.2')
end
end
end
@@ -28,9 +28,9 @@ describe Gitlab::Ci::Config::Loader do
end
end
- describe '#load' do
+ describe '#load!' do
it 'raises error' do
- expect { loader.load }.to raise_error(
+ expect { loader.load! }.to raise_error(
Gitlab::Ci::Config::Loader::FormatError,
'Invalid configuration format'
)