- it 'should not accept the administrator tag' do
- expect {
- @user[:tags] = ['administrator']
- }.to raise_error(Puppet::Error, /must use admin property/)
+ it 'does not accept the administrator tag' do
+ expect do
+ user[:tags] = ['administrator']
+ end.to raise_error(Puppet::Error, %r{must use admin property})