- it 'does not allow whitespace in the name' do
- expect do
- exchange[:name] = 'b r'
- end.to raise_error(Puppet::Error, %r{Valid values match})
+ it 'should not allow whitespace in the name' do
+ expect {
+ @exchange[:name] = 'b r'
+ }.to raise_error(Puppet::Error, /Valid values match/)