Sha256: 6eec28d59249dae5818870c2b78d65e5ab0f0fb7a1079529fb7e02e4a3a8823b
Contents?: true
Size: 1013 Bytes
Versions: 4
Compression:
Stored size: 1013 Bytes
Contents
Shindo.tests('Fog::Compute[:opennebula] | network model', ['opennebula']) do begin networks = Fog::Compute[:opennebula].networks rescue Fog::Errors::LoadError pending end network = networks.get_by_name('fogtest') 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 tests("The network model should respond to") do [:name, :id, :vlan, :uid, :uname, :gid, :description].each do |attribute| test("#{attribute}") { network.respond_to? attribute } end end tests("The attributes hash should have key") do [:name, :id, :uid, :uname, :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
4 entries across 4 versions & 2 rubygems