spec/kamerling/message_spec.rb in kamerling-0.0.1 vs spec/kamerling/message_spec.rb in kamerling-0.0.2
- old
+ new
@@ -10,11 +10,11 @@
it 'constructs a new message' do
client = fake :client, uuid: UUID.new
project = fake :project, uuid: UUID.new
task = fake :task, uuid: UUID.new
message = Message[client: client, payload: 'pay', project: project,
- task: task, type: :DATA]
+ task: task, type: :DATA]
message.client_uuid.must_equal client.uuid
message.project_uuid.must_equal project.uuid
message.task_uuid.must_equal task.uuid
message.payload.must_equal 'pay'
message.type.must_equal :DATA
@@ -55,10 +55,10 @@
end
end
describe '#to_s' do
it 'returns the raw bytes' do
- mess.to_s.must_equal "#{mess.type}\0\0\0\0\0\0\0\0\0\0\0\0" +
+ mess.to_s.must_equal "#{mess.type}\0\0\0\0\0\0\0\0\0\0\0\0" \
'16B client UUID16B project UUID16B task UUIDsome payload'
end
end
describe '#type' do