Sha256: 4377f1dfb1106b26aa0cdbc3caae673ba80d574fd493a6727fda005357494822
Contents?: true
Size: 899 Bytes
Versions: 3
Compression:
Stored size: 899 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "Fru" do attr_accessor :provider before :each do user = ENV["ipmiuser"] pass = ENV["ipmipass"] host = ENV["ipmihost"] provider = ENV["ipmiprovider"] @conn = Rubyipmi.connect(user, pass, host, provider) end it "test should return manufacturer" do @conn.fru.manufacturer.should_not be nil end it "test should return serial" do @conn.fru.serial.should_not be nil end it "test should return product name" do @conn.fru.product.should_not be nil end it "test should return fru list" do @conn.fru.list.length.should be > 1 end it "test missing method with known good method" do @conn.fru.chassis_type.should_not be nil end it "test missing method with known bad method" do expect {@conn.fru.blah}.to raise_exception end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubyipmi-0.6.0 | spec/fru_spec.rb |
rubyipmi-0.5.1 | spec/fru_spec.rb |
rubyipmi-0.5.0 | spec/fru_spec.rb |