diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-07-19 00:14:15 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-07-19 00:14:15 +0000 |
| commit | 90c8b8c1ba74452e27c08cdcec6edb9988a07a62 (patch) | |
| tree | 618b2aca281eb5046bd52efb18c5084449566bf8 /test | |
| parent | 0316bedca52aab6383ed794439f18bd75e5f611c (diff) | |
Fixing #716 -- the package type was considering anything that was not "absent" to be installed, but that included "purged", thus the problem
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2709 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
| -rwxr-xr-x | test/ral/types/package.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ral/types/package.rb b/test/ral/types/package.rb index 0fa02e984..95f0479a7 100755 --- a/test/ral/types/package.rb +++ b/test/ral/types/package.rb @@ -137,6 +137,14 @@ class TestPackages < Test::Unit::TestCase end end end + + # #716 + def test_purge_is_not_installed + package = @type.create(:ensure => :installed, :name => "whatever") + + property = package.property(:ensure) + assert(! property.insync?(:purged), "Package in state 'purged' was considered in sync") + end end # $Id$ |
