Sha256: 19e1633a97c9b9e7009a9bc61581a77e53b001fbf9b30833321abd0ef8d6d99c
Contents?: true
Size: 470 Bytes
Versions: 13
Compression:
Stored size: 470 Bytes
Contents
module NonRailsApp describe 'Event Routing' do let(:payload) { {'field' => 'value'} } let(:metadata) { {'application' => 'rails_app', 'name' => 'user_creates_beaver'} } let(:event) { RabbitFeed::Event.new metadata, payload } it 'routes events correctly' do expect(NonRailsApp::EventHandler).to receive(:handle_event) { |full_event| expect(full_event.payload).to eq(payload)} rabbit_feed_consumer.consume_event(event) end end end
Version data entries
13 entries across 13 versions & 1 rubygems