2022-11-05 16:48:47 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-11-05 16:04:42 +00:00
|
|
|
require_relative '../lib/packet'
|
|
|
|
|
|
|
|
describe 'Packet', :packet do
|
|
|
|
context 'Set flag bits' do
|
|
|
|
it 'Should set the control flag bit' do
|
2022-11-05 16:19:05 +00:00
|
|
|
expect(PacketFlags.new(control: true).bits).to eq('0001')
|
2022-11-05 16:04:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|