diff --git a/tests/requests/dns/change_resource_record_sets_tests.rb b/tests/requests/dns/change_resource_record_sets_tests.rb index 780756585..5be419bdd 100644 --- a/tests/requests/dns/change_resource_record_sets_tests.rb +++ b/tests/requests/dns/change_resource_record_sets_tests.rb @@ -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{.*}) - returns("USAR") { - geo ? geo[0] : '' + doc = Nokogiri::XML(result) + + returns(%w[US AR]) { + [ + doc.css("GeoLocation CountryCode").text, + doc.css("GeoLocation SubdivisionCode").text + ] } result