summaryrefslogtreecommitdiff
path: root/spec/models/blob_viewer
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-09-07 22:03:05 +0200
committerMatija Čupić <matteeyah@gmail.com>2018-09-07 22:03:05 +0200
commit3149b5cfea4d8f14d69bb2520974f588454a0762 (patch)
tree8cb9fac721255e2ecf2c21ac1b18f1af430f252a /spec/models/blob_viewer
parent1a53f017b4c2106da3425f3dcbe40fb95fd44bbf (diff)
downloadgitlab-ce-3149b5cfea4d8f14d69bb2520974f588454a0762.tar.gz
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.rb6
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