Updated specs for BuildList#next_build

This commit is contained in:
Vokhmin Alexey V 2014-12-11 01:21:55 +03:00
parent 44041581e7
commit b163afbda0
1 changed files with 0 additions and 10 deletions

View File

@ -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