Sha256: 76fa78e08e00d82c05c8926dda9372d10265c47a1815dce49b156ef01acc5257
Contents?: true
Size: 451 Bytes
Versions: 2
Compression:
Stored size: 451 Bytes
Contents
# frozen_string_literal: true RSpec.describe FiniteMachine::EventsMap, '#events' do it "has no event names" do events_map = described_class.new expect(events_map.events).to eq([]) end it "returns all event names" do events_map = described_class.new transition = double(:transition) events_map.add(:ready, transition) events_map.add(:go, transition) expect(events_map.events).to match_array([:ready, :go]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finite_machine-0.12.1 | spec/unit/events_map/events_spec.rb |
finite_machine-0.12.0 | spec/unit/events_map/events_spec.rb |