From 27bf5972143e88168156fdc0bb19b780d7578cab Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 8 Aug 2014 14:35:05 -0700 Subject: [PATCH] Add box collection test for colons --- test/unit/vagrant/box_collection_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/vagrant/box_collection_test.rb b/test/unit/vagrant/box_collection_test.rb index cdc8dbe37..e82427608 100644 --- a/test/unit/vagrant/box_collection_test.rb +++ b/test/unit/vagrant/box_collection_test.rb @@ -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