Sha256: 43d315478705d1f45c47e9e26fe81fdb618389ae69c5a096dde95ea037a936f1

Contents?: true

Size: 367 Bytes

Versions: 14

Compression:

Stored size: 367 Bytes

Contents

require 'spec_helper'

describe Eventus::Dispatchers::Synchronous do
  let(:persistence){ stub.as_null_object }
  let(:dispatcher) { Eventus::Dispatchers::Synchronous.new(persistence) { @hit = true } }

  before do
    persistence.should_receive(:mark_dispatched)
    dispatcher.dispatch([stub])
  end

  it "should invoke block" do
    @hit.should == true
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
eventus-0.4.3 spec/dispatchers/synchronous_spec.rb
eventus-0.4.2 spec/dispatchers/synchronous_spec.rb
eventus-0.4.1 spec/dispatchers/synchronous_spec.rb
eventus-0.4.0 spec/dispatchers/synchronous_spec.rb
eventus-0.3.9 spec/dispatchers/synchronous_spec.rb
eventus-0.3.8 spec/dispatchers/synchronous_spec.rb
eventus-0.3.7 spec/dispatchers/synchronous_spec.rb
eventus-0.3.6 spec/dispatchers/synchronous_spec.rb
eventus-0.3.5 spec/dispatchers/synchronous_spec.rb
eventus-0.3.4 spec/dispatchers/synchronous_spec.rb
eventus-0.3.3 spec/dispatchers/synchronous_spec.rb
eventus-0.3.2 spec/dispatchers/synchronous_spec.rb
eventus-0.3.1 spec/dispatchers/synchronous_spec.rb
eventus-0.3.0 spec/dispatchers/synchronous_spec.rb