Sha256: c1c1b9a32c62e72d75c4c41d5df40336b403b318182169280b656a84b177620f

Contents?: true

Size: 767 Bytes

Versions: 92

Compression:

Stored size: 767 Bytes

Contents

#! /usr/bin/env ruby
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

92 entries across 92 versions & 2 rubygems

Version Path
puppet-3.8.7 spec/unit/parameter/path_spec.rb
puppet-3.8.7-x86-mingw32 spec/unit/parameter/path_spec.rb
puppet-3.8.7-x64-mingw32 spec/unit/parameter/path_spec.rb
puppet-3.8.6 spec/unit/parameter/path_spec.rb
puppet-3.8.6-x86-mingw32 spec/unit/parameter/path_spec.rb
puppet-3.8.6-x64-mingw32 spec/unit/parameter/path_spec.rb
puppet-3.8.5 spec/unit/parameter/path_spec.rb
puppet-3.8.5-x86-mingw32 spec/unit/parameter/path_spec.rb
puppet-3.8.5-x64-mingw32 spec/unit/parameter/path_spec.rb
puppet-3.8.4 spec/unit/parameter/path_spec.rb
puppet-3.8.4-x86-mingw32 spec/unit/parameter/path_spec.rb
puppet-3.8.4-x64-mingw32 spec/unit/parameter/path_spec.rb
puppet-3.8.3 spec/unit/parameter/path_spec.rb
puppet-3.8.3-x86-mingw32 spec/unit/parameter/path_spec.rb
puppet-3.8.3-x64-mingw32 spec/unit/parameter/path_spec.rb
puppet-3.8.2 spec/unit/parameter/path_spec.rb
puppet-3.8.2-x86-mingw32 spec/unit/parameter/path_spec.rb
puppet-3.8.2-x64-mingw32 spec/unit/parameter/path_spec.rb
puppet-3.8.1 spec/unit/parameter/path_spec.rb
puppet-3.8.1-x86-mingw32 spec/unit/parameter/path_spec.rb