diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-08-07 02:38:45 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-08-07 02:38:45 +0000 |
| commit | b84015af897650aaebdb69674c4be137ea066d8d (patch) | |
| tree | 70c840a70b30a6a8e14a573ad227debefd94049c /test/ral | |
| parent | aaf5959fe3e9ff90d7288bb1ba8805bad2e7d05a (diff) | |
| download | puppet-b84015af897650aaebdb69674c4be137ea066d8d.tar.gz puppet-b84015af897650aaebdb69674c4be137ea066d8d.tar.xz puppet-b84015af897650aaebdb69674c4be137ea066d8d.zip | |
The last set of bug-fixes before the next release. This commit just fixes a couple of problems that resulted when I changed the Provider#initialize method to not duplicate its argument, which was necessary for ParsedFile.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2753 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/ral')
| -rwxr-xr-x | test/ral/types/package.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ral/types/package.rb b/test/ral/types/package.rb index 95f0479a7..79b769c26 100755 --- a/test/ral/types/package.rb +++ b/test/ral/types/package.rb @@ -86,7 +86,11 @@ class TestPackages < Test::Unit::TestCase # Make sure we can prefetch and retrieve packages def test_package_instances providers = [] - @type.instances.each do |resource| + instances = nil + assert_nothing_raised("Could not get package instances") do + instances = @type.instances + end + instances.each do |resource| # Just do one of each type next if providers.include?(resource.provider.class) providers << resource.provider.class |
