teeworlds_network/spec/02_packet_spec.rb

12 lines
250 B
Ruby
Raw Permalink Normal View History

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