2 require 'puppet/type/rabbitmq_vhost'
3 describe Puppet::Type.type(:rabbitmq_vhost) do
5 @vhost = Puppet::Type.type(:rabbitmq_vhost).new(:name => 'foo')
7 it 'should accept a vhost name' do
9 @vhost[:name].should == 'dan'
11 it 'should require a name' do
13 Puppet::Type.type(:rabbitmq_vhost).new({})
14 }.to raise_error(Puppet::Error, 'Title or name must be provided')
16 it 'should not allow whitespace in the name' do
19 }.to raise_error(Puppet::Error, /Valid values match/)