From 0aac50fa76fd47428d487b2db1c322bfb7447e85 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Wed, 12 Mar 2014 23:52:57 -0300 Subject: [PATCH] package: Add spec to check that the plugin does not blow up in case the new lxc-config file is not present --- spec/unit/action/setup_package_files_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/unit/action/setup_package_files_spec.rb b/spec/unit/action/setup_package_files_spec.rb index 0527acd..00f421a 100644 --- a/spec/unit/action/setup_package_files_spec.rb +++ b/spec/unit/action/setup_package_files_spec.rb @@ -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