spec/pio/icmp/request_spec.rb in pio-0.27.2 vs spec/pio/icmp/request_spec.rb in pio-0.28.0
- old
+ new
@@ -7,12 +7,12 @@
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',
- ip_source_address: '192.168.1.101',
- ip_destination_address: '8.8.8.8',
+ source_ip_address: '192.168.1.101',
+ destination_ip_address: '8.8.8.8',
identifier: 0x123,
sequence_number: 0x321,
echo_data: 'abcdefghijklmnopqrstuvwabcdefghi'
).to_binary
end
@@ -27,12 +27,12 @@
context 'with echo_data' 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',
- ip_source_address: '192.168.1.101',
- ip_destination_address: '8.8.8.8',
+ source_ip_address: '192.168.1.101',
+ destination_ip_address: '8.8.8.8',
identifier: 0x123,
sequence_number: 0x321,
echo_data: 'abcdefghijklmnopqrstuvwabcdefghi'
)
end
@@ -93,11 +93,11 @@
context 'with empty echo_data' 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',
- ip_source_address: '192.168.1.101',
- ip_destination_address: '8.8.8.8',
+ source_ip_address: '192.168.1.101',
+ destination_ip_address: '8.8.8.8',
identifier: 0x123,
sequence_number: 0x321
)
end