Skip to content

Fix negative tests on rspec 2.11 #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions spec/classes/mysql_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,7 @@
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
Expand All @@ -226,9 +224,7 @@
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
Expand Down
4 changes: 1 addition & 3 deletions spec/classes/mysql_init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
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

Expand Down
4 changes: 1 addition & 3 deletions spec/classes/mysql_java_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
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

Expand Down
4 changes: 1 addition & 3 deletions spec/classes/mysql_python_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
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

Expand Down
4 changes: 1 addition & 3 deletions spec/classes/mysql_ruby_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@
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

Expand Down