added extra checking into specs for BuildList#next_build

This commit is contained in:
Vokhmin Alexey V 2014-12-11 01:27:12 +03:00
parent b163afbda0
commit 0acb38109f
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ describe BuildList do
end
it 'returns nothing for wrong platform' do
expect_any_instance_of(BuildList).to receive(:restart_job)
expect(BuildList.next_build([], [-1])).to be_nil
end
end
@ -41,6 +42,7 @@ describe BuildList do
end
it 'returns nothing for wrong arch' do
expect_any_instance_of(BuildList).to receive(:restart_job)
expect(BuildList.next_build([-1], [])).to be_nil
end
end