spec/pio/icmp/request_spec.rb in pio-0.30.0 vs spec/pio/icmp/request_spec.rb in pio-0.30.1
- old
+ new
@@ -1,20 +1,16 @@
require 'pio'
-describe Pio::ICMP::Request do
- Then { Pio::ICMP::Request == Pio::Icmp::Request }
-end
-
describe Pio::Icmp do
Given(:icmp_request) do
Pio::Icmp::Request.new(
destination_mac: '24:db:ac:41:e5:5b',
source_mac: '74:e5:0b:2a:18:f8',
source_ip_address: '192.168.1.101',
destination_ip_address: '8.8.8.8',
- identifier: 0x123,
- sequence_number: 0x321,
+ icmp_identifier: 0x123,
+ icmp_sequence_number: 0x321,
echo_data: 'abcdefghijklmnopqrstuvwabcdefghi'
).to_binary
end
describe '.read' do
@@ -29,12 +25,12 @@
Pio::Icmp::Request.new(
destination_mac: '24:db:ac:41:e5:5b',
source_mac: '74:e5:0b:2a:18:f8',
source_ip_address: '192.168.1.101',
destination_ip_address: '8.8.8.8',
- identifier: 0x123,
- sequence_number: 0x321,
+ icmp_identifier: 0x123,
+ icmp_sequence_number: 0x321,
echo_data: 'abcdefghijklmnopqrstuvwabcdefghi'
)
end
describe '#to_binary' do
@@ -95,11 +91,11 @@
Pio::Icmp::Request.new(
destination_mac: '24:db:ac:41:e5:5b',
source_mac: '74:e5:0b:2a:18:f8',
source_ip_address: '192.168.1.101',
destination_ip_address: '8.8.8.8',
- identifier: 0x123,
- sequence_number: 0x321
+ icmp_identifier: 0x123,
+ icmp_sequence_number: 0x321
)
end
describe '#to_binary' do
When(:result) { icmp_request.to_binary }