diff --git a/lib/net/snmp.rb b/lib/net/snmp.rb index 1074b8e..7678bb3 100644 --- a/lib/net/snmp.rb +++ b/lib/net/snmp.rb @@ -30,7 +30,7 @@ module Net class SNMP - AsnSyntax = BER.compile_syntax({ + AsnSyntax = Net::BER.compile_syntax({ :application => { :primitive => { 1 => :integer, # Counter32, (RFC2578 sec 2) diff --git a/test/common.rb b/test/common.rb index 4e6c13b..6f34f0c 100644 --- a/test/common.rb +++ b/test/common.rb @@ -1,7 +1,3 @@ # Add 'lib' to load path. -$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" - -require 'rubygems' require 'test/unit' - -require 'net/ldap' +require 'net' \ No newline at end of file