X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Frabbitmq%2Fspec%2Funit%2Fpuppet%2Ftype%2Frabbitmq_plugin_spec.rb;fp=3rdparty%2Fmodules%2Frabbitmq%2Fspec%2Funit%2Fpuppet%2Ftype%2Frabbitmq_plugin_spec.rb;h=0000000000000000000000000000000000000000;hb=24caa46729f80fbba4be8b9b26ebcb3acc4cb0fb;hp=194df66d11857b506721bfce84934d5b9844a0a4;hpb=c7e7bcc28cc5dc48a7e284a3c82f33df27d1f57d;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/rabbitmq/spec/unit/puppet/type/rabbitmq_plugin_spec.rb b/3rdparty/modules/rabbitmq/spec/unit/puppet/type/rabbitmq_plugin_spec.rb deleted file mode 100644 index 194df66d1..000000000 --- a/3rdparty/modules/rabbitmq/spec/unit/puppet/type/rabbitmq_plugin_spec.rb +++ /dev/null @@ -1,24 +0,0 @@ -require 'spec_helper' -describe Puppet::Type.type(:rabbitmq_plugin) do - let(:plugin) do - Puppet::Type.type(:rabbitmq_plugin).new(name: 'foo') - end - - it 'accepts a plugin name' do - plugin[:name] = 'plugin-name' - expect(plugin[:name]).to eq('plugin-name') - end - it 'requires a name' do - expect do - Puppet::Type.type(:rabbitmq_plugin).new({}) - end.to raise_error(Puppet::Error, 'Title or name must be provided') - end - it 'defaults to a umask of 0022' do - expect(plugin[:umask]).to eq(0o022) - end - it 'does not allow a non-octal value to be specified' do - expect do - plugin[:umask] = '198' - end.to raise_error(Puppet::Error, %r{The umask specification is invalid: "198"}) - end -end