1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

For the old versions of Ruby.

This commit is contained in:
Daniel Aragao 2014-07-11 12:08:25 +10:00 committed by Dan Aragao
parent 46b671f99a
commit 407fd60f4a

View file

@ -4,7 +4,7 @@ require 'fog/vcloud_director/parsers/compute/vms'
Shindo.tests('Parsers::Compute::VcloudDirector::Vm', ['vclouddirector', 'all']) do
parser = Nokogiri::XML::SAX::Parser.new(Fog::Parsers::Compute::VcloudDirector::Vm.new)
vm_response_xml = File.open(File.join(__dir__, '..', 'fixtures','vm.xml')).read
vm_response_xml = File.open(File.join(File.dirname(__FILE__), '..', 'fixtures','vm.xml')).read
parser.parse(vm_response_xml)
vm = parser.document.response[:vm]
@ -42,7 +42,7 @@ end
Shindo.tests('Parsers::Compute::VcloudDirector::Vms', ['vclouddirector', 'all']) do
parser = Nokogiri::XML::SAX::Parser.new(Fog::Parsers::Compute::VcloudDirector::Vms.new)
vapp_response_xml = File.open(File.join(__dir__, '..', 'fixtures','vapp.xml')).read
vapp_response_xml = File.open(File.join(File.dirname(__FILE__), '..', 'fixtures','vapp.xml')).read
parser.parse(vapp_response_xml)
vms = parser.document.response[:vms]