pio 0.1.1 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,26 +0,0 @@
1
- require File.join( File.dirname( __FILE__ ), "..", "..", "spec_helper" )
2
- require "pio/lldp/ttl-tlv"
3
-
4
-
5
- module Pio
6
- class Lldp
7
- describe TtlTlv do
8
- subject { TtlTlv.read( data.pack( "C*" ) ) }
9
-
10
- context "parsing a raw data" do
11
- let( :data ) { [ 0x06, 0x02, 0x00, 0x78 ] }
12
-
13
- its( :tlv_type ) { should eq 3 }
14
- its( :tlv_info_length ) { should eq 2 }
15
- its( :ttl ) { should eq data[ -2..-1 ].pack( "C*" ) }
16
- end
17
- end
18
- end
19
- end
20
-
21
-
22
- ### Local variables:
23
- ### mode: Ruby
24
- ### coding: utf-8-unix
25
- ### indent-tabs-mode: nil
26
- ### End: