test/models/storage/test_storage_account.rb in fog-azure-rm-0.0.9 vs test/models/storage/test_storage_account.rb in fog-azure-rm-0.1.0
- old
+ new
@@ -26,11 +26,12 @@
attributes = [
:name,
:location,
:resource_group,
:sku_name,
- :replication
+ :replication,
+ :encryption
]
attributes.each do |attribute|
assert_respond_to @storage_account, attribute
end
end
@@ -51,9 +52,15 @@
end
@service.stub :create_storage_account, @storage_account_response do
assert_raises RuntimeError do
@premium_invalid_replication.save
end
+ end
+ end
+
+ def test_update_method_response
+ @service.stub :update_storage_account, @storage_account_response do
+ assert_instance_of Fog::Storage::AzureRM::StorageAccount, @storage_account.update({})
end
end
def test_get_access_keys_method_response
key1 = Azure::ARM::Storage::Models::StorageAccountKey.new