Sha256: 29da788355e643f217dd1ef34c44823100288de6222b629393443015409304dd

Contents?: true

Size: 440 Bytes

Versions: 4

Compression:

Stored size: 440 Bytes

Contents

require 'spec_helper'

module NonRailsApp
  describe EventHandler do

    describe '#handle_event' do
      it 'publishes an update event' do
        expect{
          described_class.handle_event double(:event, name: 'user_updates_beaver', payload: { 'beaver_name' => 'beaver' })
        }.to publish_event('application_acknowledges_event', { 'beaver_name' => 'beaver', 'event_name' => 'user_updates_beaver' })
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rabbit_feed-1.0.2 example/non_rails_app/spec/lib/non_rails_app/event_handler_spec.rb
rabbit_feed-1.0.1 example/non_rails_app/spec/lib/non_rails_app/event_handler_spec.rb
rabbit_feed-1.0.0 example/non_rails_app/spec/lib/non_rails_app/event_handler_spec.rb
rabbit_feed-0.3.1 example/non_rails_app/spec/lib/non_rails_app/event_handler_spec.rb