Sha256: c9ce6a94986735af0868d41cb5f3f18627cdb9a6fe5695895bf012225c22f2b6
Contents?: true
Size: 902 Bytes
Versions: 9
Compression:
Stored size: 902 Bytes
Contents
Shindo.tests("Fog::Ovirt::Compute.new | operating_system model", ["ovirt"]) do operating_systems = Fog::Ovirt::Compute.new.operating_systems operating_system = operating_systems.last tests("The operating_system model should") do tests("have attributes") do model_attribute_hash = operating_system.attributes attributes = %i[id name href description] tests("The operating_system model should respond to") do attributes.each do |attribute| test(attribute.to_s) { operating_system.respond_to? attribute } end end tests("The attributes hash should have key") do attributes.each do |attribute| test(attribute.to_s) { model_attribute_hash.key? attribute } end end end test("be a kind of Fog::Ovirt::Compute::OperatingSystem") { operating_system.is_a? Fog::Ovirt::Compute::OperatingSystem } end end
Version data entries
9 entries across 9 versions & 1 rubygems