Sha256: 489b899928056821f28d72623656664a0a74868ab90c7df17901d1734f1f8ddc

Contents?: true

Size: 450 Bytes

Versions: 278

Compression:

Stored size: 450 Bytes

Contents

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

278 entries across 278 versions & 1 rubygems

Version Path
puppet-5.5.1 spec/unit/type/file/type_spec.rb
puppet-5.5.1-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-5.5.1-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-5.5.1-universal-darwin spec/unit/type/file/type_spec.rb
puppet-4.10.11 spec/unit/type/file/type_spec.rb
puppet-4.10.11-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-4.10.11-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-4.10.11-universal-darwin spec/unit/type/file/type_spec.rb
puppet-5.3.6 spec/unit/type/file/type_spec.rb
puppet-5.3.6-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-5.3.6-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-5.3.6-universal-darwin spec/unit/type/file/type_spec.rb
puppet-5.5.0 spec/unit/type/file/type_spec.rb
puppet-5.5.0-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-5.5.0-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-5.5.0-universal-darwin spec/unit/type/file/type_spec.rb
puppet-5.4.0 spec/unit/type/file/type_spec.rb
puppet-5.4.0-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-5.4.0-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-5.4.0-universal-darwin spec/unit/type/file/type_spec.rb