test_hostsparse could, under some circumstances, leak its target
filenames into later tests. test_modifyingfile and test_simplehost would
then write their test data over the data in test/data/types/hosts/* ,
which would cause subsequent runs of test_hostsparse to fail.

Signed-off-by: Jesse Wolfe <[email protected]>
---
 test/lib/puppettest/fileparsing.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/lib/puppettest/fileparsing.rb 
b/test/lib/puppettest/fileparsing.rb
index 11de002..9fe694f 100644
--- a/test/lib/puppettest/fileparsing.rb
+++ b/test/lib/puppettest/fileparsing.rb
@@ -2,7 +2,7 @@ module PuppetTest::FileParsing
     # Run an isomorphism test on our parsing process.
     def fakedataparse(*files)
         files.each do |file|
-            @provider.stubs(:default_target).returns(file)
+            @provider.default_target = file
 
             @provider.prefetch
 
-- 
1.6.3.3

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to