spec/bmc_spec.rb in rubyipmi-0.5.1 vs spec/bmc_spec.rb in rubyipmi-0.6.0
- old
+ new
@@ -21,9 +21,20 @@
# @conn.bmc.info.retrieve
# after = info.options.clone
# before.length.should be < after.length
#end
+ it "should reset the bmc device" do
+ @conn.bmc.reset('cold').should_not be_nil
+ end
+
+ it "should reset the bmc device warmly" do
+ @conn.bmc.reset('warm').should_not be_nil
+ end
+
+ it "reset should fail when type is wrong" do
+ @conn.bmc.reset('freezing').should_be nil
+ end
it "is able to retrieve the bmc info" do
@conn.bmc.info.should_not be_nil
end
\ No newline at end of file