diff options
author | Matija Čupić <matteeyah@gmail.com> | 2019-05-02 01:29:15 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2019-05-28 18:06:29 +0300 |
commit | 31bd09a3924d1b76cac38996267ffe6ec08cad46 (patch) | |
tree | bec537082fcdec21510736ee8372186cf9abe4df /spec/serializers/build_details_entity_spec.rb | |
parent | 51183ad3bdad507325c14c916d70fe3ab9857bfc (diff) |
Expose report download path in build details
Exposes report download paths in build details.
Diffstat (limited to 'spec/serializers/build_details_entity_spec.rb')
-rw-r--r-- | spec/serializers/build_details_entity_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/serializers/build_details_entity_spec.rb b/spec/serializers/build_details_entity_spec.rb index 9c2e5c79a9d..0b8ed873bde 100644 --- a/spec/serializers/build_details_entity_spec.rb +++ b/spec/serializers/build_details_entity_spec.rb @@ -146,5 +146,13 @@ describe BuildDetailsEntity do end end end + + context 'when the build has reports' do + let!(:report) { create(:ci_job_artifact, :codequality, job: build) } + + it 'exposes the report artifacts' do + expect(subject[:reports]).not_to be_empty + end + end end end |