test/requests/compute/test_delete_image.rb in fog-azure-rm-0.4.5 vs test/requests/compute/test_delete_image.rb in fog-azure-rm-0.4.6
- old
+ new
@@ -15,9 +15,9 @@
end
def test_delete_image_failure
response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
@image.stub :delete, response do
- assert_raises(RuntimeError) { @service.delete_image('fog-test-rg', 'fog-test-server-osImage') }
+ assert_raises(MsRestAzure::AzureOperationError) { @service.delete_image('fog-test-rg', 'fog-test-server-osImage') }
end
end
end