From 459864414383d0083e39c2e0b4d0ef61bd4066cb Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sat, 13 Jul 2013 13:42:03 -0300 Subject: [PATCH] Checking for specific error classes got deprecated on new rspec --- spec/unit/driver_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/unit/driver_spec.rb b/spec/unit/driver_spec.rb index b062bb9..3f4fccf 100644 --- a/spec/unit/driver_spec.rb +++ b/spec/unit/driver_spec.rb @@ -14,19 +14,19 @@ describe Vagrant::LXC::Driver do it 'raises a ContainerNotFound error if an unknown container name gets provided' do expect { unknown_container.validate! - }.to raise_error(Vagrant::LXC::Driver::ContainerNotFound) + }.to raise_error end it 'does not raise a ContainerNotFound error if a valid container name gets provided' do expect { valid_container.validate! - }.to_not raise_error(Vagrant::LXC::Driver::ContainerNotFound) + }.not_to raise_error end it 'does not raise a ContainerNotFound error if nil is provider as name' do expect { new_container.validate! - }.to_not raise_error(Vagrant::LXC::Driver::ContainerNotFound) + }.not_to raise_error end end