Merge pull request #87 from branan/fix_rspec_211
Fix negative tests on rspec 2.11
This commit is contained in:
commit
be493c3a41
5 changed files with 6 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue