Sha256: 157c6b07793fd49bc12a332cdf7ff0c1ba38219f67e9c952c2d3cdc1e9ade684

Contents?: true

Size: 429 Bytes

Versions: 340

Compression:

Stored size: 429 Bytes

Contents

require 'spec_helper'

describe Puppet::Type.type(:file).attrclass(:type) do
  require 'puppet_spec/files'
  include PuppetSpec::Files

  before do
    @filename = tmpfile('type')
    @resource = Puppet::Type.type(:file).new({:name => @filename})
  end

  it "should prevent the user from trying to set the type" do
    expect {
      @resource[:type] = "fifo"
    }.to raise_error(Puppet::Error, /type is read-only/)
  end

end

Version data entries

340 entries across 340 versions & 1 rubygems

Version Path
puppet-8.3.0 spec/unit/type/file/type_spec.rb
puppet-8.3.0-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-8.3.0-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-8.3.0-universal-darwin spec/unit/type/file/type_spec.rb
puppet-8.4.0 spec/unit/type/file/type_spec.rb
puppet-8.4.0-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-8.4.0-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-8.4.0-universal-darwin spec/unit/type/file/type_spec.rb
puppet-7.28.0 spec/unit/type/file/type_spec.rb
puppet-7.28.0-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-7.28.0-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-7.28.0-universal-darwin spec/unit/type/file/type_spec.rb
puppet-8.3.1 spec/unit/type/file/type_spec.rb
puppet-8.3.1-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-8.3.1-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-8.3.1-universal-darwin spec/unit/type/file/type_spec.rb
puppet-7.27.0 spec/unit/type/file/type_spec.rb
puppet-7.27.0-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-7.27.0-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-7.27.0-universal-darwin spec/unit/type/file/type_spec.rb