Sha256: f398fdd5ae3e4b00faa0102d1a4322610e0a8bd3a4c1046363cbc81349388461

Contents?: true

Size: 751 Bytes

Versions: 340

Compression:

Stored size: 751 Bytes

Contents

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::Type.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

340 entries across 340 versions & 1 rubygems

Version Path
puppet-8.3.0 spec/unit/parameter/path_spec.rb
puppet-8.3.0-x86-mingw32 spec/unit/parameter/path_spec.rb
puppet-8.3.0-x64-mingw32 spec/unit/parameter/path_spec.rb
puppet-8.3.0-universal-darwin spec/unit/parameter/path_spec.rb
puppet-8.4.0 spec/unit/parameter/path_spec.rb
puppet-8.4.0-x86-mingw32 spec/unit/parameter/path_spec.rb
puppet-8.4.0-x64-mingw32 spec/unit/parameter/path_spec.rb
puppet-8.4.0-universal-darwin spec/unit/parameter/path_spec.rb
puppet-7.28.0 spec/unit/parameter/path_spec.rb
puppet-7.28.0-x86-mingw32 spec/unit/parameter/path_spec.rb
puppet-7.28.0-x64-mingw32 spec/unit/parameter/path_spec.rb
puppet-7.28.0-universal-darwin spec/unit/parameter/path_spec.rb
puppet-8.3.1 spec/unit/parameter/path_spec.rb
puppet-8.3.1-x86-mingw32 spec/unit/parameter/path_spec.rb
puppet-8.3.1-x64-mingw32 spec/unit/parameter/path_spec.rb
puppet-8.3.1-universal-darwin spec/unit/parameter/path_spec.rb
puppet-7.27.0 spec/unit/parameter/path_spec.rb
puppet-7.27.0-x86-mingw32 spec/unit/parameter/path_spec.rb
puppet-7.27.0-x64-mingw32 spec/unit/parameter/path_spec.rb
puppet-7.27.0-universal-darwin spec/unit/parameter/path_spec.rb