Sha256: 1108748acf9afdbc9272cb5b388374719324729e9f2f9ee17fb58c022ac0fbfe

Contents?: true

Size: 472 Bytes

Versions: 7

Compression:

Stored size: 472 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 RabbitFeed::Event.new({'name' => 'user_updates_beaver', 'application' => 'rails_app'}, {'beaver_name' => 'beaver'})
        }.to publish_event('application_acknowledges_event', { 'beaver_name' => 'beaver', 'event_name' => 'user_updates_beaver' })
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rabbit_feed-2.3.1 example/non_rails_app/spec/lib/non_rails_app/event_handler_spec.rb
rabbit_feed-2.3.0 example/non_rails_app/spec/lib/non_rails_app/event_handler_spec.rb
rabbit_feed-2.1.5 example/non_rails_app/spec/lib/non_rails_app/event_handler_spec.rb
rabbit_feed-2.1.2 example/non_rails_app/spec/lib/non_rails_app/event_handler_spec.rb
rabbit_feed-2.1.1 example/non_rails_app/spec/lib/non_rails_app/event_handler_spec.rb
rabbit_feed-2.1.0 example/non_rails_app/spec/lib/non_rails_app/event_handler_spec.rb
rabbit_feed-2.0.0 example/non_rails_app/spec/lib/non_rails_app/event_handler_spec.rb