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

View file

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

View file

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

View file

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

View file

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