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.6.2 spec/integration/indirector/facts/facter_spec.rb
puppet-3.6.2-x86-mingw32 spec/integration/indirector/facts/facter_spec.rb
puppet-3.6.1 spec/integration/indirector/facts/facter_spec.rb
puppet-3.6.1-x86-mingw32 spec/integration/indirector/facts/facter_spec.rb
puppet-3.6.0 spec/integration/indirector/facts/facter_spec.rb
puppet-3.6.0-x86-mingw32 spec/integration/indirector/facts/facter_spec.rb
puppet-3.6.0.rc1 spec/integration/indirector/facts/facter_spec.rb
puppet-3.6.0.rc1-x86-mingw32 spec/integration/indirector/facts/facter_spec.rb
puppet-3.5.1 spec/integration/indirector/facts/facter_spec.rb
puppet-3.5.1-x86-mingw32 spec/integration/indirector/facts/facter_spec.rb
puppet-3.5.1.rc1 spec/integration/indirector/facts/facter_spec.rb
puppet-3.5.1.rc1-x86-mingw32 spec/integration/indirector/facts/facter_spec.rb
puppet-3.5.0.rc3 spec/integration/indirector/facts/facter_spec.rb
puppet-3.5.0.rc3-x86-mingw32 spec/integration/indirector/facts/facter_spec.rb
puppet-3.5.0.rc2 spec/integration/indirector/facts/facter_spec.rb
puppet-3.5.0.rc2-x86-mingw32 spec/integration/indirector/facts/facter_spec.rb
puppet-3.5.0.rc1 spec/integration/indirector/facts/facter_spec.rb
puppet-3.5.0.rc1-x86-mingw32 spec/integration/indirector/facts/facter_spec.rb
puppet-3.4.3 spec/integration/indirector/facts/facter_spec.rb
puppet-3.4.2 spec/integration/indirector/facts/facter_spec.rb