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

Fix syntax for ruby 1.8.7

This commit is contained in:
Carlos Lima 2015-06-29 03:27:44 +08:00
parent 0dad896add
commit b19e6dc292

View file

@ -19,9 +19,9 @@ Shindo.tests('Fog::DNS[:aws] | change_resource_record_sets', ['aws', 'dns']) do
}]
result = Fog::DNS::AWS.change_resource_record_sets_data('zone_id123', change_batch)
.match(%r{<GeoLocation>.*</GeoLocation>})
geo = result.match(%r{<GeoLocation>.*</GeoLocation>})
returns("<GeoLocation><CountryCode>US</CountryCode><SubdivisionCode>AR</SubdivisionCode></GeoLocation>") {
result ? result[0] : ''
geo ? geo[0] : ''
}
result