diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-04-03 21:17:26 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-04-03 21:17:26 +0300 |
commit | ff1383fb11267996bf040260513e6d3d8f468def (patch) | |
tree | 49eb83015e006a84177aa5f0b05b50f99a17b97f /spec/features/projects/jobs | |
parent | 5af00309d3a4d50e89b278981dcd6485ae4e77f1 (diff) |
Properly set up job trace in user_browses_job_spec
Diffstat (limited to 'spec/features/projects/jobs')
-rw-r--r-- | spec/features/projects/jobs/user_browses_job_spec.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/features/projects/jobs/user_browses_job_spec.rb b/spec/features/projects/jobs/user_browses_job_spec.rb index 4c49cff30d4..8fa902cc386 100644 --- a/spec/features/projects/jobs/user_browses_job_spec.rb +++ b/spec/features/projects/jobs/user_browses_job_spec.rb @@ -1,16 +1,14 @@ require 'spec_helper' describe 'User browses a job', :js do - let!(:build) { create(:ci_build, :running, :coverage, pipeline: pipeline) } - let(:pipeline) { create(:ci_empty_pipeline, project: project, sha: project.commit.sha, ref: 'master') } - let(:project) { create(:project, :repository, namespace: user.namespace) } let(:user) { create(:user) } + let(:project) { create(:project, :repository, namespace: user.namespace) } + let(:pipeline) { create(:ci_empty_pipeline, project: project, sha: project.commit.sha, ref: 'master') } + let!(:build) { create(:ci_build, :success, :trace_artifact, :coverage, pipeline: pipeline) } before do project.add_master(user) project.enable_ci - build.success - build.trace.set('job trace') sign_in(user) |