On Sun, Mar 6, 2011 at 11:52, James Turnbull <[email protected]> wrote: > > Signed-off-by: James Turnbull <[email protected]> > --- > Local-branch: tickets/master/6611 > spec/unit/virtual_spec.rb | 23 ++++++++++++----------- > 1 files changed, 12 insertions(+), 11 deletions(-) > > diff --git a/spec/unit/virtual_spec.rb b/spec/unit/virtual_spec.rb > index a152b40..454a57b 100644 > --- a/spec/unit/virtual_spec.rb > +++ b/spec/unit/virtual_spec.rb > @@ -6,9 +6,18 @@ require 'facter/util/macosx' > > describe "Virtual fact" do > > - after do > - Facter.clear > - end […] > + after do > + Facter.clear > + end
This is no longer necessary in trunk, and should be dropped; the test suite automatically clears Facter at the appropriate point around every test to prevent changes in one leaking into the next. Daniel -- ⎋ Puppet Labs Developer – http://puppetlabs.com ✉ Daniel Pittman <[email protected]> ✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775 ♲ Made with 100 percent post-consumer electrons -- 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.
