Sha256: 05c8b49d11fe3a22a2458293118eacef0f4f193a311914c39d757db7577962ef
Contents?: true
Size: 493 Bytes
Versions: 6
Compression:
Stored size: 493 Bytes
Contents
#!/usr/bin/env rspec -cfd require_relative '../spec_helper' require 'arborist/event_api' describe Arborist::EventAPI do let( :uuid ) { '9E630B46-B0D2-4658-AFE6-ED4A1E838C69' } it "encodes events published by the Manager" do encoded = described_class.encode( uuid, {a: 1, b: 2} ) expect( encoded ).to be_a( CZTop::Message ) identifier, payload = described_class.decode( encoded ) expect( identifier ).to eq( uuid ) expect( payload ).to eq({ 'a' => 1, 'b' => 2 }) end end
Version data entries
6 entries across 6 versions & 1 rubygems