Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-07-09 15:18:31 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2018-07-09 15:19:52 +0300
commit5a9f23e780222218cc8418fd859669befcaed1b2 (patch)
tree083ffd594c90d7d812d754cc676483b1cb8f4b3e /spec/controllers
parentbc00803af03147452c12e9e2c7e8f0c0cba86f73 (diff)
Fix and add specs for testing metadata entry
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/projects/jobs_controller_spec.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/controllers/projects/jobs_controller_spec.rb b/spec/controllers/projects/jobs_controller_spec.rb
index 5f53a2d087a..38431fb1598 100644
--- a/spec/controllers/projects/jobs_controller_spec.rb
+++ b/spec/controllers/projects/jobs_controller_spec.rb
@@ -225,8 +225,11 @@ describe Projects::JobsController, :clean_gitlab_redis_shared_state do
end
context 'when there are no network issues' do
+ let(:url) { 'http://object-storage/trace' }
+ let(:file) { expand_fixture_path('trace/sample_trace') }
+
before do
- stub_remote_trace_206
+ stub_remote_url_206(url, file)
get_trace
end
@@ -241,7 +244,7 @@ describe Projects::JobsController, :clean_gitlab_redis_shared_state do
context 'when there is a network issue' do
before do
- stub_remote_trace_500
+ stub_remote_url_500(url)
end
it 'returns a trace' do