Sha256: a15816d75c8765fc61ebf34e21c7cf27dcf463b0dc77c2a45e39b06b9a8f89da
Contents?: true
Size: 955 Bytes
Versions: 16
Compression:
Stored size: 955 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, :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
16 entries across 16 versions & 2 rubygems