Sha256: 18ad7e7454f8e1c1eea760f865d781518051c8d90778c80fe7fa2416d46e2bb1

Contents?: true

Size: 425 Bytes

Versions: 8

Compression:

Stored size: 425 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

8 entries across 8 versions & 1 rubygems

Version Path
snmp-1.0.3 test/test_smi.rb
snmp-0.5.0 test/test_smi.rb
snmp-0.6.0 test/test_smi.rb
snmp-0.5.1 test/test_smi.rb
snmp-1.0.1 test/test_smi.rb
snmp-1.0.0 test/test_smi.rb
snmp-0.6.1 test/test_smi.rb
snmp-1.0.2 test/test_smi.rb