Checking for specific error classes got deprecated on new rspec
This commit is contained in:
parent
09208a0d28
commit
4598644143
1 changed files with 3 additions and 3 deletions
|
@ -14,19 +14,19 @@ describe Vagrant::LXC::Driver do
|
||||||
it 'raises a ContainerNotFound error if an unknown container name gets provided' do
|
it 'raises a ContainerNotFound error if an unknown container name gets provided' do
|
||||||
expect {
|
expect {
|
||||||
unknown_container.validate!
|
unknown_container.validate!
|
||||||
}.to raise_error(Vagrant::LXC::Driver::ContainerNotFound)
|
}.to raise_error
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'does not raise a ContainerNotFound error if a valid container name gets provided' do
|
it 'does not raise a ContainerNotFound error if a valid container name gets provided' do
|
||||||
expect {
|
expect {
|
||||||
valid_container.validate!
|
valid_container.validate!
|
||||||
}.to_not raise_error(Vagrant::LXC::Driver::ContainerNotFound)
|
}.not_to raise_error
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'does not raise a ContainerNotFound error if nil is provider as name' do
|
it 'does not raise a ContainerNotFound error if nil is provider as name' do
|
||||||
expect {
|
expect {
|
||||||
new_container.validate!
|
new_container.validate!
|
||||||
}.to_not raise_error(Vagrant::LXC::Driver::ContainerNotFound)
|
}.not_to raise_error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue