diff options
author | Micaël Bergeron <mbergeron@gitlab.com> | 2018-03-02 21:21:03 +0300 |
---|---|---|
committer | Micaël Bergeron <mbergeron@gitlab.com> | 2018-03-02 21:21:03 +0300 |
commit | 4484587ef8c9bf63c60359a0980dda95e854b744 (patch) | |
tree | a917f3d9336e389e485fdab72cc5a8a5ad5fd3af /spec/uploaders/job_artifact_uploader_spec.rb | |
parent | 0d458b96e8349a50877ebd55932bf806e93caa21 (diff) |
another round of EE code removal
Diffstat (limited to 'spec/uploaders/job_artifact_uploader_spec.rb')
-rw-r--r-- | spec/uploaders/job_artifact_uploader_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/uploaders/job_artifact_uploader_spec.rb b/spec/uploaders/job_artifact_uploader_spec.rb index 714b2498538..42036d67f3d 100644 --- a/spec/uploaders/job_artifact_uploader_spec.rb +++ b/spec/uploaders/job_artifact_uploader_spec.rb @@ -48,6 +48,17 @@ describe JobArtifactUploader do end end end + + context 'when trace is stored in Object storage' do + before do + allow(uploader).to receive(:file_storage?) { false } + allow(uploader).to receive(:url) { 'http://object_storage.com/trace' } + end + + it 'returns http io stream' do + is_expected.to be_a(Gitlab::Ci::Trace::HttpIO) + end + end end context 'file is stored in valid local_path' do |