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

Avoid 1.8 sorting issue

This commit is contained in:
Michael Hale 2015-07-02 12:21:36 -04:00
parent d85cedbc89
commit 01bae5ee53

View file

@ -19,9 +19,13 @@ 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)
geo = result.match(%r{<GeoLocation>.*</GeoLocation>})
returns("<GeoLocation><CountryCode>US</CountryCode><SubdivisionCode>AR</SubdivisionCode></GeoLocation>") {
geo ? geo[0] : ''
doc = Nokogiri::XML(result)
returns(%w[US AR]) {
[
doc.css("GeoLocation CountryCode").text,
doc.css("GeoLocation SubdivisionCode").text
]
}
result