Merge pull request #87 from branan/fix_rspec_211

Fix negative tests on rspec 2.11
This commit is contained in:
Dan Bode 2012-07-23 16:45:08 -07:00
commit be493c3a41
5 changed files with 6 additions and 18 deletions

View file

@ -209,9 +209,7 @@ describe 'mysql::config' do
end
it 'should fail' do
expect do
subject
end.should raise_error(Puppet::Error, /Duplicate (declaration|definition)/)
expect { subject }.to raise_error(Puppet::Error, /Duplicate (declaration|definition)/)
end
end
@ -226,9 +224,7 @@ describe 'mysql::config' do
end
it 'should fail' do
expect do
subject
end.should raise_error(Puppet::Error, /required when ssl is true/)
expect { subject }.to raise_error(Puppet::Error, /required when ssl is true/)
end
end

View file

@ -47,9 +47,7 @@ describe 'mysql' do
end
it 'should fail' do
expect do
subject
end.should raise_error(/Unsupported osfamily: foo/)
expect { subject }.to raise_error(/Unsupported osfamily: foo/)
end
end

View file

@ -47,9 +47,7 @@ describe 'mysql::java' do
end
it 'should fail' do
expect do
subject
end.should raise_error(/Unsupported osfamily: foo/)
expect { subject }.to raise_error(/Unsupported osfamily: foo/)
end
end

View file

@ -47,9 +47,7 @@ describe 'mysql::python' do
end
it 'should fail' do
expect do
subject
end.should raise_error(/Unsupported osfamily: foo/)
expect { subject }.to raise_error(/Unsupported osfamily: foo/)
end
end

View file

@ -55,9 +55,7 @@ describe 'mysql::ruby' do
end
it 'should fail' do
expect do
subject
end.should raise_error(/Unsupported osfamily: foo/)
expect { subject }.to raise_error(/Unsupported osfamily: foo/)
end
end