Sha256: f85ce7e5cf782d5662e0d7b6c0d389cc8a086b72b247722ec8dc44f7103dfe51
Contents?: true
Size: 337 Bytes
Versions: 2
Compression:
Stored size: 337 Bytes
Contents
# frozen_string_literal: true RSpec.describe FiniteMachine::HookEvent, '#notify' do it "emits event on the subscriber" do subscriber = spy(:subscriber) hook_event = described_class.new(:green, :go, :red) hook_event.notify(subscriber, 1, 2) expect(subscriber).to have_received(:emit).with(hook_event, 1, 2) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finite_machine-0.12.1 | spec/unit/hook_event/notify_spec.rb |
finite_machine-0.12.0 | spec/unit/hook_event/notify_spec.rb |