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