Sha256: 54617d2cb541ea0a6fa4bd1c25d1ed2c59342f5ab332f44b5e601f35f8b7f966
Contents?: true
Size: 553 Bytes
Versions: 13
Compression:
Stored size: 553 Bytes
Contents
#!/usr/bin/env ruby require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Facter do before do Facter.reset end after do Facter.reset end it "should create a new collection if one does not exist" do Facter.reset coll = mock('coll') Facter::Util::Collection.stubs(:new).returns coll Facter.collection.should equal(coll) Facter.reset end it "should remove the collection when reset" do old = Facter.collection Facter.reset Facter.collection.should_not equal(old) end end
Version data entries
13 entries across 13 versions & 2 rubygems