BigW Consortium Gitlab

Commit 6830e282 by Lin Jen-Shin
parent 6de48227
...@@ -698,9 +698,9 @@ describe Ci::Build, models: true do ...@@ -698,9 +698,9 @@ describe Ci::Build, models: true do
end end
it 'returns builds from ref' do 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 end
it 'returns empty relation if the build cannot be found' do it 'returns empty relation if the build cannot be found' do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment