Sha256: 47d920872bb3e25f05258df42d7256161678bad019528d0c196e0dc6949f28fa

Contents?: true

Size: 767 Bytes

Versions: 35

Compression:

Stored size: 767 Bytes

Contents

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

require 'puppet/parameter/path'

[false, true].each do |arrays|
  describe "Puppet::Parameter::Path with arrays #{arrays}" do
    it_should_behave_like "all path parameters", :path, :array => arrays do
      # The new type allows us a test that is guaranteed to go direct to our
      # validation code, without passing through any "real type" overrides or
      # whatever on the way.
      Puppet::newtype(:test_puppet_parameter_path) do
        newparam(:path, :parent => Puppet::Parameter::Path, :arrays => arrays) do
          isnamevar
          accept_arrays arrays
        end
      end

      def instance(path)
        Puppet::Type.type(:test_puppet_parameter_path).new(:path => path)
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
puppet-2.7.26 spec/unit/parameter/path_spec.rb
puppet-2.7.25 spec/unit/parameter/path_spec.rb
puppet-2.7.24 spec/unit/parameter/path_spec.rb
puppet-2.7.23 spec/unit/parameter/path_spec.rb
puppet-2.7.22 spec/unit/parameter/path_spec.rb
puppet-2.7.21 spec/unit/parameter/path_spec.rb
puppet-2.7.20 spec/unit/parameter/path_spec.rb
puppet-2.7.20.rc1 spec/unit/parameter/path_spec.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/puppet-2.7.18/spec/unit/parameter/path_spec.rb
puppet-2.7.19 spec/unit/parameter/path_spec.rb
supply_drop-0.11.0 examples/vendored-puppet/vendor/puppet-2.7.8/spec/unit/parameter/path_spec.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/puppet-2.7.18/spec/unit/parameter/path_spec.rb
supply_drop-0.10.2 examples/vendored-puppet/vendor/puppet-2.7.8/spec/unit/parameter/path_spec.rb
puppet-2.7.18 spec/unit/parameter/path_spec.rb
supply_drop-0.10.1 examples/vendored-puppet/vendor/puppet-2.7.8/spec/unit/parameter/path_spec.rb
supply_drop-0.10.0 examples/vendored-puppet/vendor/puppet-2.7.8/spec/unit/parameter/path_spec.rb
puppet-2.7.17 spec/unit/parameter/path_spec.rb
puppet-2.7.16 spec/unit/parameter/path_spec.rb
puppet-2.7.14 spec/unit/parameter/path_spec.rb
puppet-2.7.13 spec/unit/parameter/path_spec.rb