diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-07 13:53:46 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-07 13:53:46 +0300 |
commit | 5ef104df59211b022ed42e38e1cdbe950ff54388 (patch) | |
tree | fffe79c6a75b379a64adb600cfb027b037a95fb7 /spec | |
parent | fa097c678cdfead0dc1344e6d32569266da53465 (diff) |
Improve Ci config loader by changing method signature
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/ci/config/loader_spec.rb | 8 |
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' ) |