summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-10-08 22:04:49 -0500
committerLuke Kanies <luke@madstop.com>2008-10-08 22:04:49 -0500
commita5fe87fb3c54dd0dfa20e6220cc76c7969c27d03 (patch)
tree4305c7f38eea07cc451589c195ce7b1e24da65db
parent53b7d42bb061ff1cfea3519179779a1cba2cf877 (diff)
downloadpuppet-a5fe87fb3c54dd0dfa20e6220cc76c7969c27d03.tar.gz
puppet-a5fe87fb3c54dd0dfa20e6220cc76c7969c27d03.tar.xz
puppet-a5fe87fb3c54dd0dfa20e6220cc76c7969c27d03.zip
Fixing a file source test that was failing because missing sources is now a failure
Signed-off-by: Luke Kanies <luke@madstop.com>
-rwxr-xr-xtest/ral/type/filesources.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/ral/type/filesources.rb b/test/ral/type/filesources.rb
index 77b598187..24bc0b923 100755
--- a/test/ral/type/filesources.rb
+++ b/test/ral/type/filesources.rb
@@ -292,11 +292,9 @@ class TestFileSources < Test::Unit::TestCase
# Lastly, make sure we return an empty array when no sources are there
obj[:source] = [nosource, tempfile()]
- assert_nothing_raised do
+ assert_raise(Puppet::Error) do
result, sourced = obj.sourcerecurse(true)
end
- assert_equal([], sourced, "Did not get correct list of sourced objects")
- assert_equal([], result, "Sourcerecurse failed when all sources are missing")
end
def test_simplelocalsource