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