spec/dap/proto/ldap_proto_spec.rb in dap-0.1.24 vs spec/dap/proto/ldap_proto_spec.rb in dap-1.0.0

- old
+ new

@@ -5,11 +5,11 @@ context 'testing lengths shorter than 128 bits' do data = ['301402'].pack('H*') let(:decode_len) { subject.decode_elem_length(data) } it 'returns a Fixnum' do - expect(decode_len.class).to eq(::Fixnum) + expect(decode_len.class).to eq(::Integer) end it 'returns value correctly' do expect(decode_len).to eq(22) end end @@ -17,11 +17,11 @@ context 'testing lengths greater than 128 bits' do data = ['308400000bc102010'].pack('H*') let(:decode_len) { subject.decode_elem_length(data) } it 'returns a Fixnum' do - expect(decode_len.class).to eq(::Fixnum) + expect(decode_len.class).to eq(::Integer) end it 'returns value correctly' do expect(decode_len).to eq(3015) end end @@ -29,10 +29,10 @@ context 'testing with 3 byte length' do data = ['3083015e0802010764'].pack('H*') let(:decode_len) { subject.decode_elem_length(data) } it 'returns a Fixnum' do - expect(decode_len.class).to eq(::Fixnum) + expect(decode_len.class).to eq(::Integer) end it 'returns value correctly' do expect(decode_len).to eq(89613) end end