package: Add spec to check that the plugin does not blow up in case the new lxc-config file is not present

This commit is contained in:
Fabio Rehm 2014-03-12 23:52:57 -03:00
parent 165f647c2d
commit 0aac50fa76

View file

@ -60,4 +60,14 @@ describe Vagrant::LXC::Action::SetupPackageFiles do
expect { subject.call(env) }.to_not raise_error
end
end
context 'when lxc-config file is not present' do
before do
box.directory.join('lxc-config').delete
end
it 'does not blow up' do
expect { subject.call(env) }.to_not raise_error
end
end
end