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:
parent
d85cedbc89
commit
01bae5ee53
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue