Commit 43b6a3ea authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 42656104
......@@ -687,8 +687,9 @@ describe Ci::Build, models: true do
end
it 'returns empty relation if the build cannot be found' do
builds = project.latest_successful_builds_for('TAIL').all
builds = project.latest_successful_builds_for('TAIL')
expect(builds).to be_kind_of(ActiveRecord::Relation)
expect(builds).to be_empty
end
end
......@@ -699,8 +700,9 @@ describe Ci::Build, models: true do
end
it 'returns empty relation' do
builds = project.latest_successful_builds_for('fix').all
builds = project.latest_successful_builds_for('fix')
expect(builds).to be_kind_of(ActiveRecord::Relation)
expect(builds).to be_empty
end
end
......
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