Sha256: 452c9cfbae2953445b6763aa1addfa098f1e0fa8eb44f06c9d92360a74c273d6
Contents?: true
Size: 582 Bytes
Versions: 15
Compression:
Stored size: 582 Bytes
Contents
describe Pheme::MessageType::AwsEvent do let(:poller) { ExampleAwsEventQueuePoller.new } let(:message_id) { SecureRandom.uuid } let(:queue_url) { 'http://queue_url' } let(:queue_message) do OpenStruct.new( message_id: message_id, body: { 'Records' => records }.to_json, queue_url: queue_url, ) end describe "#parse_body" do subject { poller.parse_body(queue_message) } context "with JSON message" do let!(:records) { [{ 'eventVersion' => '2.0' }] } its('first.eventVersion') { is_expected.to eq('2.0') } end end end
Version data entries
15 entries across 15 versions & 1 rubygems