Sha256: e3eb9cd3088f9725fce4296abc7ed7c7e73ff062569125c55babf51d34e2bc7d

Contents?: true

Size: 482 Bytes

Versions: 53

Compression:

Stored size: 482 Bytes

Contents

#! /usr/bin/env ruby
require 'spec_helper'

require 'puppet_spec/compiler'

describe Puppet::Node::Facts::Facter do
  include PuppetSpec::Compiler

  it "preserves case in fact values" do
    Facter.add(:downcase_test) do
      setcode do
        "AaBbCc"
      end
    end

    Facter.stubs(:clear)

    cat = compile_to_catalog('notify { $downcase_test: }',
                             Puppet::Node.indirection.find('foo'))
    cat.resource("Notify[AaBbCc]").should be
  end
end

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
puppet-3.4.1 spec/integration/indirector/facts/facter_spec.rb
puppet-3.4.0 spec/integration/indirector/facts/facter_spec.rb
puppet-3.4.0.rc2 spec/integration/indirector/facts/facter_spec.rb
puppet-3.4.0.rc1 spec/integration/indirector/facts/facter_spec.rb
puppet-3.3.2 spec/integration/indirector/facts/facter_spec.rb
puppet-3.3.1 spec/integration/indirector/facts/facter_spec.rb
puppet-3.3.1.rc3 spec/integration/indirector/facts/facter_spec.rb
puppet-3.3.1.rc2 spec/integration/indirector/facts/facter_spec.rb
puppet-3.3.1.rc1 spec/integration/indirector/facts/facter_spec.rb
puppet-3.3.0 spec/integration/indirector/facts/facter_spec.rb
puppet-3.3.0.rc3 spec/integration/indirector/facts/facter_spec.rb
puppet-3.3.0.rc2 spec/integration/indirector/facts/facter_spec.rb
puppet-3.2.4 spec/integration/indirector/facts/facter_spec.rb
puppet-3.2.3 spec/integration/indirector/facts/facter_spec.rb
puppet-3.2.3.rc1 spec/integration/indirector/facts/facter_spec.rb
puppet-3.2.2 spec/integration/indirector/facts/facter_spec.rb
puppet-3.2.1 spec/integration/indirector/facts/facter_spec.rb
puppet-3.2.1.rc1 spec/integration/indirector/facts/facter_spec.rb
puppet-3.2.0.rc2 spec/integration/indirector/facts/facter_spec.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/spec/integration/indirector/facts/facter_spec.rb