Fix test incompat with Ruby 1.8.6

This commit is contained in:
Mitchell Hashimoto 2011-05-12 00:04:11 -07:00
parent 593e2e628f
commit b8c2b6cde4
1 changed files with 2 additions and 1 deletions

View File

@ -169,7 +169,8 @@ class ForwardPortsVMActionTest < Test::Unit::TestCase
end
should "forward ports" do
name, opts = @env.env.config.vm.forwarded_ports.first
name = @env.env.config.vm.forwarded_ports.keys.first
opts = @env.env.config.vm.forwarded_ports[name]
adapters = []
adapter = mock("adapter")