Sha256: 379b020e615f6b02107b7b19bcf94cb167a822548b2494a40907148cccb4bf2a
Contents?: true
Size: 390 Bytes
Versions: 2
Compression:
Stored size: 390 Bytes
Contents
# frozen_string_literal: true RSpec.describe FiniteMachine::HookEvent, '#build' do it "builds action event" do hook_event = FiniteMachine::HookEvent::Before.build(:green, :go, :red) expect(hook_event.name).to eq(:go) end it "builds state event" do hook_event = FiniteMachine::HookEvent::Enter.build(:green, :go, :red) expect(hook_event.name).to eq(:green) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finite_machine-0.12.1 | spec/unit/hook_event/build_spec.rb |
finite_machine-0.12.0 | spec/unit/hook_event/build_spec.rb |