Sha256: 7abbfba4e4f6eb3823212ac124d94af71e1edcc8b6b9e05c384c5e407aa1dca3

Contents?: true

Size: 486 Bytes

Versions: 6

Compression:

Stored size: 486 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(:reset)

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppet-4.0.0 spec/integration/indirector/facts/facter_spec.rb
puppet-4.0.0-x86-mingw32 spec/integration/indirector/facts/facter_spec.rb
puppet-4.0.0-x64-mingw32 spec/integration/indirector/facts/facter_spec.rb
puppet-4.0.0.rc1 spec/integration/indirector/facts/facter_spec.rb
puppet-4.0.0.rc1-x86-mingw32 spec/integration/indirector/facts/facter_spec.rb
puppet-4.0.0.rc1-x64-mingw32 spec/integration/indirector/facts/facter_spec.rb