test/requests/dns/test_delete_zone.rb in far-gem-0.5.1 vs test/requests/dns/test_delete_zone.rb in far-gem-0.5.2
- old
+ new
@@ -16,9 +16,9 @@
end
def test_delete_zone_failure
response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
@zones.stub :delete, response do
- assert_raises(RuntimeError) { @service.delete_zone('fog-test-rg', 'fog-test-zone') }
+ assert_raises(MsRestAzure::AzureOperationError) { @service.delete_zone('fog-test-rg', 'fog-test-zone') }
end
end
end