Sha256: 16646ba229aef27555ed1f9907958b2c204868d5ad62ecf90f52a5aa62c0a575
Contents?: true
Size: 938 Bytes
Versions: 12
Compression:
Stored size: 938 Bytes
Contents
Shindo.tests('Fog::Compute[:opennebula] | network model', ['opennebula']) do networks = Fog::Compute[:opennebula].networks network = networks.last tests('The network model should') do tests('have the action') do test('reload') { network.respond_to? 'reload' } end tests('have attributes') do model_attribute_hash = network.attributes attributes = tests("The network model should respond to") do [:name, :id, :vlan, :uid, :gid, :description].each do |attribute| test("#{attribute}") { network.respond_to? attribute } end end tests("The attributes hash should have key") do [:name, :id, :uid, :gid].each do |attribute| test("#{attribute}") { model_attribute_hash.has_key? attribute } end end end test('be a kind of Fog::Compute::OpenNebula::Network') { network.kind_of? Fog::Compute::OpenNebula::Network } end end
Version data entries
12 entries across 12 versions & 3 rubygems