Fix spec
This commit is contained in:
parent
64fbe180f1
commit
eb274e879c
1 changed files with 2 additions and 2 deletions
|
@ -116,11 +116,11 @@ describe Vagrant::LXC::Action::HandleBoxMetadata do
|
||||||
}.to raise_error(Vagrant::LXC::Errors::RootFSTarballMissing)
|
}.to raise_error(Vagrant::LXC::Errors::RootFSTarballMissing)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'raises an error if the lxc-template script cant be found' do
|
it 'does not raise an error if the lxc-template script cant be found' do
|
||||||
File.stub(:exists?).with(box_directory.join('lxc-template').to_s).and_return(false)
|
File.stub(:exists?).with(box_directory.join('lxc-template').to_s).and_return(false)
|
||||||
expect {
|
expect {
|
||||||
subject.call(env)
|
subject.call(env)
|
||||||
}.to raise_error(Vagrant::LXC::Errors::TemplateFileMissing)
|
}.to_not raise_error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue