diff options
author | Matija Čupić <matteeyah@gmail.com> | 2019-07-17 16:33:52 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2019-07-23 21:55:59 +0300 |
commit | 7cee6139c07db7ba4fd6febf74c24dbfaee8e59d (patch) | |
tree | e140f84706d0067f7a788bb4aa9ee677b3851f2b /spec/features/projects | |
parent | d892e80bf0161b535389c91ccb53539e4f08d790 (diff) |
Find build by sha from ref
Adds ability to find builds by sha when only specifying a ref.
Diffstat (limited to 'spec/features/projects')
-rw-r--r-- | spec/features/projects/artifacts/user_downloads_artifacts_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/projects/artifacts/user_downloads_artifacts_spec.rb b/spec/features/projects/artifacts/user_downloads_artifacts_spec.rb index 5cb015e80be..69296ef00fd 100644 --- a/spec/features/projects/artifacts/user_downloads_artifacts_spec.rb +++ b/spec/features/projects/artifacts/user_downloads_artifacts_spec.rb @@ -1,8 +1,8 @@ require "spec_helper" describe "User downloads artifacts" do - set(:project) { create(:project, :public) } - set(:pipeline) { create(:ci_empty_pipeline, status: :success, project: project) } + set(:project) { create(:project, :repository, :public) } + set(:pipeline) { create(:ci_empty_pipeline, status: :success, sha: project.commit.id, project: project) } set(:job) { create(:ci_build, :artifacts, :success, pipeline: pipeline) } shared_examples "downloading" do |