Add box collection test for colons

This commit is contained in:
Mitchell Hashimoto 2014-08-08 14:35:05 -07:00
parent 082d92c8ff
commit 27bf597214
1 changed files with 3 additions and 1 deletions

View File

@ -26,14 +26,16 @@ describe Vagrant::BoxCollection do
environment.box3("foo", "1.0", :vmware)
environment.box3("bar", "0", :ec2)
environment.box3("foo-VAGRANTSLASH-bar", "1.0", :virtualbox)
environment.box3("foo:bar", "1.0", :virtualbox)
# Verify some output
results = subject.all
expect(results.length).to eq(4)
expect(results.length).to eq(5)
expect(results.include?(["foo", "1.0", :virtualbox])).to be
expect(results.include?(["foo", "1.0", :vmware])).to be
expect(results.include?(["bar", "0", :ec2])).to be
expect(results.include?(["foo/bar", "1.0", :virtualbox])).to be
expect(results.include?(["foo:bar", "1.0", :virtualbox])).to be
end
it 'does not raise an exception when a file appears in the boxes dir' do