Sha256: e84c8ff180b98286819a06f694f5a027099ed44ce047b5a80b1a4400735e222f
Contents?: true
Size: 673 Bytes
Versions: 3
Compression:
Stored size: 673 Bytes
Contents
RSpec.describe Message::InvalidTarget do let(:message_type) { Message::InvalidTarget::TYPE_CODE } let(:string) { message_type } describe '.new' do it 'should reuse the same singleton object' do expect(Message::InvalidTarget.new.object_id).to eq \ Message::InvalidTarget.new.object_id end end describe '.parse' do it 'should parse correctly' do message = Message::InvalidTarget.parse string expect(message).to be_a Message::InvalidTarget end end describe '#to_s' do it 'should serialize correctly' do serialized = Message::InvalidTarget.new.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/invalid_target_spec.rb |
aggro-0.0.3 | spec/lib/aggro/message/invalid_target_spec.rb |
aggro-0.0.2 | spec/lib/aggro/message/invalid_target_spec.rb |