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:
parent
46b671f99a
commit
407fd60f4a
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue