From 2f016f387367d6e52504194098333d1692e33c67 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Sat, 24 Apr 2010 15:45:01 +1000 Subject: Fixed #3541 - Ruby 1.9: broken unittest, unexpected invocation: Process.waitall() Thanks to Jos Backus for the fix. --- spec/unit/util/resolution.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/unit/util/resolution.rb b/spec/unit/util/resolution.rb index d4bb781..7cbfb31 100755 --- a/spec/unit/util/resolution.rb +++ b/spec/unit/util/resolution.rb @@ -136,6 +136,7 @@ describe Facter::Util::Resolution do @resolve.expects(:warn) @resolve.timeout = 0.1 @resolve.setcode { sleep 2; raise "This is a test" } + Thread.expects(:new).yields @resolve.value.should be_nil end -- cgit