active_machines should return name as a symbol

This commit is contained in:
Mitchell Hashimoto 2012-12-30 11:51:22 -10:00
parent 4c46091746
commit a30a92bb4f
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ module Vagrant
# If this isn't a directory then it isn't a machine
next if !name_folder.directory?
name = name_folder.basename.to_s
name = name_folder.basename.to_s.to_sym
name_folder.children(true).each do |provider_folder|
# If this isn't a directory then it isn't a provider
next if !provider_folder.directory?

View File

@ -43,7 +43,7 @@ describe Vagrant::Environment do
machine_bar = machines.join("bar/virtualbox")
machine_bar.mkpath
instance.active_machines.should == [["foo", :virtualbox]]
instance.active_machines.should == [[:foo, :virtualbox]]
end
end