Updated specs for BuildList#next_build
This commit is contained in:
parent
44041581e7
commit
b163afbda0
|
@ -29,11 +29,6 @@ describe BuildList do
|
|||
expect(BuildList.next_build([], [build_list.build_for_platform_id])).to eq build_list
|
||||
end
|
||||
|
||||
it 'returns nothing if build list does not in queue' do
|
||||
expect_any_instance_of(BuildList).to receive(:destroy_from_resque_queue).and_return(0)
|
||||
expect(BuildList.next_build([], [build_list.build_for_platform_id])).to be_nil
|
||||
end
|
||||
|
||||
it 'returns nothing for wrong platform' do
|
||||
expect(BuildList.next_build([], [-1])).to be_nil
|
||||
end
|
||||
|
@ -45,11 +40,6 @@ describe BuildList do
|
|||
expect(BuildList.next_build([build_list.arch_id], [])).to eq build_list
|
||||
end
|
||||
|
||||
it 'returns nothing if build list does not in queue' do
|
||||
expect_any_instance_of(BuildList).to receive(:destroy_from_resque_queue).and_return(0)
|
||||
expect(BuildList.next_build([build_list.arch_id], [])).to be_nil
|
||||
end
|
||||
|
||||
it 'returns nothing for wrong arch' do
|
||||
expect(BuildList.next_build([-1], [])).to be_nil
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue