Broaden assert_absent so that it thinks that :purged is equivalent to :absent

git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2766 980ebf18-57e1-0310-9a29-db15c13687c0
This commit is contained in:
(no author) 2007-08-09 22:44:21 +00:00
Родитель 6a78648fc9
Коммит 0195893a75
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -72,7 +72,7 @@ class TestPackageProvider < Test::Unit::TestCase
if result.nil?
assert_nil(result)
elsif result.is_a?(Hash)
assert_equal(:absent, result[:ensure], msg)
assert (result[:ensure] == :absent or result[:ensure] == :purged), msg
else
raise "dunno how to handle %s" % result.inspect
end