Sha256: 115a0e2ec9b0a6f06804acea0a6c1ff35224f714ce96fb1a4eca0de6e9fb8602

Contents?: true

Size: 454 Bytes

Versions: 92

Compression:

Stored size: 454 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
    lambda {
      @resource[:type] = "fifo"
    }.should raise_error(Puppet::Error, /type is read-only/)
  end

end

Version data entries

92 entries across 92 versions & 2 rubygems

Version Path
puppet-3.8.1-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-3.7.5 spec/unit/type/file/type_spec.rb
puppet-3.7.5-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-3.7.5-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-3.7.4 spec/unit/type/file/type_spec.rb
puppet-3.7.4-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-3.7.4-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-3.7.3 spec/unit/type/file/type_spec.rb
puppet-3.7.3-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-3.7.3-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-3.7.2 spec/unit/type/file/type_spec.rb
puppet-3.7.2-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-3.7.2-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-3.7.1 spec/unit/type/file/type_spec.rb
puppet-3.7.1-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-3.7.1-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-3.7.0 spec/unit/type/file/type_spec.rb
puppet-3.7.0-x86-mingw32 spec/unit/type/file/type_spec.rb
puppet-3.7.0-x64-mingw32 spec/unit/type/file/type_spec.rb
puppet-3.6.2 spec/unit/type/file/type_spec.rb