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:
Родитель
6a78648fc9
Коммит
0195893a75
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче