Add box collection test for colons
This commit is contained in:
parent
082d92c8ff
commit
27bf597214
|
@ -26,14 +26,16 @@ describe Vagrant::BoxCollection do
|
||||||
environment.box3("foo", "1.0", :vmware)
|
environment.box3("foo", "1.0", :vmware)
|
||||||
environment.box3("bar", "0", :ec2)
|
environment.box3("bar", "0", :ec2)
|
||||||
environment.box3("foo-VAGRANTSLASH-bar", "1.0", :virtualbox)
|
environment.box3("foo-VAGRANTSLASH-bar", "1.0", :virtualbox)
|
||||||
|
environment.box3("foo:bar", "1.0", :virtualbox)
|
||||||
|
|
||||||
# Verify some output
|
# Verify some output
|
||||||
results = subject.all
|
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", :virtualbox])).to be
|
||||||
expect(results.include?(["foo", "1.0", :vmware])).to be
|
expect(results.include?(["foo", "1.0", :vmware])).to be
|
||||||
expect(results.include?(["bar", "0", :ec2])).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
|
||||||
|
expect(results.include?(["foo:bar", "1.0", :virtualbox])).to be
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'does not raise an exception when a file appears in the boxes dir' do
|
it 'does not raise an exception when a file appears in the boxes dir' do
|
||||||
|
|
Loading…
Reference in New Issue