Sha256: 607842fccad83a5c7677d5aaf4d2b7af0142fe56bbf6b8055a6ce84ea0e9694f

Contents?: true

Size: 383 Bytes

Versions: 3

Compression:

Stored size: 383 Bytes

Contents

require 'test/unit'

begin
  require 'smi'

  class TestSmi < Test::Unit::TestCase

    include SNMP::SMI

    def test_load
      name, oid_hash = load_smi_module('test/mibs/IF-MIB')
      assert_equal("IF-MIB", name)
      assert_equal("1.3.6.1.2.1.2.2", oid_hash["ifTable"])
    end

  end
rescue LoadError
  # snmp/smi may not always be available because it is a C extention
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
snmp-1.1.1 test/test_smi.rb
snmp-1.1.0 test/test_smi.rb
snmp-1.0.4 test/test_smi.rb