Sha256: f7ea230e67cec117dae36cc00a25a1d55e9be77ec3b6953ac3c5635df70f3f45
Contents?: true
Size: 919 Bytes
Versions: 9
Compression:
Stored size: 919 Bytes
Contents
Shindo.tests("Fog::Ovirt::Compute.new | interface model", ["ovirt"]) do interfaces = Fog::Ovirt::Compute.new.servers.last.interfaces interface = interfaces.last tests("The interface model should") do tests("have the action") do test("reload") { interface.respond_to? "reload" } end tests("have attributes") do model_attribute_hash = interface.attributes attributes = %i[id name network] tests("The interface model should respond to") do attributes.each do |attribute| test(attribute.to_s) { interface.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::Interface") { interface.is_a? Fog::Ovirt::Compute::Interface } end end
Version data entries
9 entries across 9 versions & 1 rubygems