Sha256: a1f8e32d442f83aed0c6c307529f105afaf974ab2bbccbdc8f27981e0d020146
Contents?: true
Size: 457 Bytes
Versions: 2
Compression:
Stored size: 457 Bytes
Contents
# frozen_string_literal: true RSpec.describe FiniteMachine::HookEvent, '#any_state_or_event' do it "infers default name for state" do hook_event = described_class::Enter expect(described_class.any_state_or_event(hook_event)).to eq(FiniteMachine::ANY_STATE) end it "infers default name for event" do hook_event = described_class::Before expect(described_class.any_state_or_event(hook_event)).to eq(FiniteMachine::ANY_EVENT) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finite_machine-0.12.1 | spec/unit/hook_event/any_state_or_event_spec.rb |
finite_machine-0.12.0 | spec/unit/hook_event/any_state_or_event_spec.rb |