diff options
author | James Turnbull <james@lovedthanlost.net> | 2010-04-24 15:45:01 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2010-04-24 15:45:01 +1000 |
commit | 2f016f387367d6e52504194098333d1692e33c67 (patch) | |
tree | d95dee6b4d82211aa31cf0d2b10c618ff19cbe6e | |
parent | 84d3d9f2abbe1f1a113103fe92d7fac39b734c9d (diff) | |
download | facter-2f016f387367d6e52504194098333d1692e33c67.tar.gz facter-2f016f387367d6e52504194098333d1692e33c67.tar.xz facter-2f016f387367d6e52504194098333d1692e33c67.zip |
Fixed #3541 - Ruby 1.9: broken unittest, unexpected invocation: Process.waitall()
Thanks to Jos Backus for the fix.
-rwxr-xr-x | spec/unit/util/resolution.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |