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:
parent
165f647c2d
commit
0aac50fa76
1 changed files with 10 additions and 0 deletions
|
@ -60,4 +60,14 @@ describe Vagrant::LXC::Action::SetupPackageFiles do
|
||||||
expect { subject.call(env) }.to_not raise_error
|
expect { subject.call(env) }.to_not raise_error
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
|
|
Loading…
Reference in a new issue