Sha256: 170c9fa19f4d7b2c6f10cbb90a5ac80cf53321f2110f7407e0597c6d6adfd2aa
Contents?: true
Size: 533 Bytes
Versions: 3
Compression:
Stored size: 533 Bytes
Contents
RSpec.describe Message::Ask do let(:message_type) { Message::Ask::TYPE_CODE } let(:node_id) { SecureRandom.uuid } let(:string) { message_type + node_id } describe '.parse' do it 'should parse correctly' do message = Message::Ask.parse string expect(message).to be_a Message::Ask expect(message.node_id).to eq node_id end end describe '#to_s' do it 'should serialize correctly' do serialized = Message::Ask.new(node_id).to_s expect(serialized).to eq string end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aggro-0.0.4 | spec/lib/aggro/message/ask_spec.rb |
aggro-0.0.3 | spec/lib/aggro/message/ask_spec.rb |
aggro-0.0.2 | spec/lib/aggro/message/ask_spec.rb |