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

Version Path
supply_drop-0.11.0 examples/vendored-puppet/vendor/facter-1.6.4/spec/integration/facter_spec.rb
supply_drop-0.10.2 examples/vendored-puppet/vendor/facter-1.6.4/spec/integration/facter_spec.rb
supply_drop-0.10.1 examples/vendored-puppet/vendor/facter-1.6.4/spec/integration/facter_spec.rb
supply_drop-0.10.0 examples/vendored-puppet/vendor/facter-1.6.4/spec/integration/facter_spec.rb
supply_drop-0.9.0 examples/vendored-puppet/vendor/facter-1.6.4/spec/integration/facter_spec.rb
supply_drop-0.8.1 examples/vendored-puppet/vendor/facter-1.6.4/spec/integration/facter_spec.rb
supply_drop-0.8.0 examples/vendored-puppet/vendor/facter-1.6.4/spec/integration/facter_spec.rb
supply_drop-0.7.0 examples/vendored-puppet/vendor/facter-1.6.4/spec/integration/facter_spec.rb
supply_drop-0.6.1 examples/vendored-puppet/vendor/facter-1.6.4/spec/integration/facter_spec.rb
supply_drop-0.6.0 examples/vendored-puppet/vendor/facter-1.6.4/spec/integration/facter_spec.rb
facter-1.6.4 spec/integration/facter_spec.rb
facter-1.6.3 spec/integration/facter_spec.rb
facter-1.6.2 spec/integration/facter_spec.rb