add spec for Environment#find_finished_thread to fully cover

This commit is contained in:
Josh Holtrop 2017-05-23 16:47:00 -04:00
parent 221cde7e5f
commit 2655c119e4

View File

@ -326,6 +326,13 @@ module Rscons
end
end
describe "#find_finished_thread" do
it "raises an error if called with nonblock=false and no threads to wait for" do
env = Environment.new
expect {env.__send__(:find_finished_thread, [], false)}.to raise_error /No threads to wait for/
end
end
describe ".parse_makefile_deps" do
it 'handles dependencies on one line' do
expect(File).to receive(:read).with('makefile').and_return(<<EOS)