Skip to content
Snippets Groups Projects
Commit 6830e282 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files
parent 6de48227
No related branches found
No related tags found
1 merge request!5142Add a download buttons for Build Artifacts
Pipeline #
Loading
Loading
@@ -698,9 +698,9 @@ describe Ci::Build, models: true do
end
 
it 'returns builds from ref' do
build_ids = project.latest_success_builds_for('HEAD').map(&:id)
builds = project.latest_success_builds_for('HEAD')
 
expect(build_ids).to eq([build.id])
expect(builds).to contain_exactly(build)
end
 
it 'returns empty relation if the build cannot be found' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment