Sha256: a9d3ccb07beb727c050b27f44a5bf1b00f83fa1a8f98107daa0e2831e942e874
Contents?: true
Size: 569 Bytes
Versions: 3
Compression:
Stored size: 569 Bytes
Contents
require 'spec_helper' require 'stringio' describe Vx::Message do %w{ PerformJob JobLog JobStatus }.each do |klass| context "#{klass}" do let(:inst) { described_class.const_get klass } subject { inst.test_message } it "should be valid" do expect(subject.validate!).to be end it "should be successfuly serialized/deserialized" do bytes = subject.encode obj = described_class.const_get(klass).decode(bytes) expect(obj.validate!).to be expect(obj).to eq subject end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vx-message-0.6.2 | spec/lib/message_spec.rb |
vx-message-0.6.1 | spec/lib/message_spec.rb |
vx-message-0.6.0 | spec/lib/message_spec.rb |