diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-09-07 23:03:05 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-09-07 23:03:05 +0300 |
commit | 3149b5cfea4d8f14d69bb2520974f588454a0762 (patch) | |
tree | 8cb9fac721255e2ecf2c21ac1b18f1af430f252a /spec/models/blob_viewer | |
parent | 1a53f017b4c2106da3425f3dcbe40fb95fd44bbf (diff) |
Improve external architecture
CE mirror of 4f17c7b2c30188302e6a73421acbf5a09fb2c823
Diffstat (limited to 'spec/models/blob_viewer')
-rw-r--r-- | spec/models/blob_viewer/gitlab_ci_yml_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/blob_viewer/gitlab_ci_yml_spec.rb b/spec/models/blob_viewer/gitlab_ci_yml_spec.rb index bed364a8c14..4c8a5aae83a 100644 --- a/spec/models/blob_viewer/gitlab_ci_yml_spec.rb +++ b/spec/models/blob_viewer/gitlab_ci_yml_spec.rb @@ -12,12 +12,12 @@ describe BlobViewer::GitlabCiYml do it 'calls prepare! on the viewer' do expect(subject).to receive(:prepare!) - subject.validation_message + subject.validation_message(project, project.default_branch) end context 'when the configuration is valid' do it 'returns nil' do - expect(subject.validation_message).to be_nil + expect(subject.validation_message(project, project.default_branch)).to be_nil end end @@ -25,7 +25,7 @@ describe BlobViewer::GitlabCiYml do let(:data) { 'oof' } it 'returns the error message' do - expect(subject.validation_message).to eq('Invalid configuration format') + expect(subject.validation_message(project, project.default_branch)).to eq('Invalid configuration format') end end end |