test/requests/sql/test_delete_database.rb in fog-azure-rm-0.4.5 vs test/requests/sql/test_delete_database.rb in fog-azure-rm-0.4.6
- old
+ new
@@ -15,9 +15,9 @@
end
def test_delete_database_failure
response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
@databases.stub :delete, response do
- assert_raises(RuntimeError) { @service.delete_database('fog-test-rg', 'fog-test-server-name', 'database-name') }
+ assert_raises(MsRestAzure::AzureOperationError) { @service.delete_database('fog-test-rg', 'fog-test-server-name', 'database-name') }
end
end
end