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

Version Path
rabbit_feed-2.4.4 example/non_rails_app/spec/lib/non_rails_app/event_routing_spec.rb
rabbit_feed-2.4.3 example/non_rails_app/spec/lib/non_rails_app/event_routing_spec.rb
rabbit_feed-2.4.2 example/non_rails_app/spec/lib/non_rails_app/event_routing_spec.rb
rabbit_feed-2.4.1 example/non_rails_app/spec/lib/non_rails_app/event_routing_spec.rb
rabbit_feed-2.4.0 example/non_rails_app/spec/lib/non_rails_app/event_routing_spec.rb
rabbit_feed-2.3.10 example/non_rails_app/spec/lib/non_rails_app/event_routing_spec.rb
rabbit_feed-2.3.9 example/non_rails_app/spec/lib/non_rails_app/event_routing_spec.rb
rabbit_feed-2.3.7 example/non_rails_app/spec/lib/non_rails_app/event_routing_spec.rb
rabbit_feed-2.3.6 example/non_rails_app/spec/lib/non_rails_app/event_routing_spec.rb
rabbit_feed-2.3.5 example/non_rails_app/spec/lib/non_rails_app/event_routing_spec.rb
rabbit_feed-2.3.4 example/non_rails_app/spec/lib/non_rails_app/event_routing_spec.rb
rabbit_feed-2.3.3 example/non_rails_app/spec/lib/non_rails_app/event_routing_spec.rb
rabbit_feed-2.3.2 example/non_rails_app/spec/lib/non_rails_app/event_routing_spec.rb