Sha256: b8bc839f954798d084230a15cfacdb78a62b61321443f3424f06e1a58a140570
Contents?: true
Size: 844 Bytes
Versions: 1
Compression:
Stored size: 844 Bytes
Contents
require File.expand_path '../../test_helper', __dir__ # Test class for Data Disk Model class TestDataDisk < Minitest::Test def setup @service = Fog::Storage::AzureRM.new(credentials) @data_disk = Fog::Storage::AzureRM::DataDisk.new end def test_model_attributes attributes = [ :name, :disk_size_gb, :lun, :vhd_uri, :caching, :create_option ] attributes.each do |attribute| assert @data_disk.respond_to? attribute, true end end def test_parse_method_response mocked_response = ApiStub::Models::Storage::DataDisk.create_data_disk_response expected_response = ApiStub::Models::Storage::DataDisk.expected_create_data_disk_response assert_equal Fog::Storage::AzureRM::DataDisk.parse(mocked_response), expected_response end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.4 | test/models/storage/test_data_disk.rb |