diff options
| author | Luke Kanies <luke@madstop.com> | 2005-07-22 05:51:36 +0000 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2005-07-22 05:51:36 +0000 |
| commit | cc67845bebd79989a0cb0fe27124f244993d2233 (patch) | |
| tree | 715c609b114465f16544ab80021c01215547e3db /test | |
| parent | 326b4ade1a41f6c876ecc9d5a291c309776c6a10 (diff) | |
fixing package listing
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@438 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
| -rw-r--r-- | test/types/tc_package.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/types/tc_package.rb b/test/types/tc_package.rb index b84bb4140..6aca28545 100644 --- a/test/types/tc_package.rb +++ b/test/types/tc_package.rb @@ -61,7 +61,8 @@ class TestPackages < Test::Unit::TestCase assert_nothing_raised() { pkg = @list[rand(@list.length)] } - assert(pkg) + assert(pkg[:install]) + assert(! pkg.state(:install).should) assert_nothing_raised() { pkg.evaluate } @@ -71,6 +72,7 @@ class TestPackages < Test::Unit::TestCase assert_nothing_raised() { pkg.evaluate } + assert(pkg.insync?) assert_nothing_raised() { pkg[:install] = "1.2.3.4" } |
