Sha256: e506798b6692d0a6ff302fc6a5061cef7b3a6f6f56c0c485d238e6f7ebca0514

Contents?: true

Size: 456 Bytes

Versions: 2

Compression:

Stored size: 456 Bytes

Contents

require 'spec_helper'

RSpec.describe Appdash::CollectPacket do

  it "should build" do
    packet = described_class.build Appdash::Event::Message.new("Hello world!"), mock_span_id
    expect(packet).to be_instance_of(described_class)
    expect(packet.to_hash).to eq(
      spanid: {
        trace: 5678,
        span:  1234,
      },
      annotation: [
        {key: "Msg", value: "Hello world!"},
        {key: "_schema:msg"},
      ]
    )
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
appdash-0.6.3 spec/appdash/wire_spec.rb
appdash-0.6.2 spec/appdash/wire_spec.rb