I found this doing idempotency tests (#2879), but there are apparently other ways for external state to leak into this test, as reported by James.
Signed-off-by: Jesse Wolfe <[email protected]> --- spec/unit/provider/mount/parsed.rb | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/spec/unit/provider/mount/parsed.rb b/spec/unit/provider/mount/parsed.rb index cf9feaa..10329e4 100755 --- a/spec/unit/provider/mount/parsed.rb +++ b/spec/unit/provider/mount/parsed.rb @@ -140,10 +140,12 @@ describe provider_class do end it "should write the mount to disk when :flush is called" do + old_text = @provider_class.target_object(@provider_class.default_target).read + @mount.flush text = @provider_class.target_object(@provider_class.default_target).read - text.should == @mount.class.to_line(@mount.property_hash) + "\n" + text.should == old_text + @mount.class.to_line(@mount.property_hash) + "\n" end end -- 1.6.5 -- 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.
