Sha256: 455a883f9331cb2f6ad3eec55c1dbe48b09537b67a2ce95c3e7820ea326508ed
Contents?: true
Size: 490 Bytes
Versions: 8
Compression:
Stored size: 490 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe FiniteMachine::Hooks, '#inspect' do subject(:hooks) { described_class.new } it "displays name and transitions" do hook = -> { } event = FiniteMachine::HookEvent::Enter collection = {event => {yellow: [hook]}} hooks.register(event, :yellow, hook) expect(hooks.inspect).to eql("<#FiniteMachine::Hooks:0x#{hooks.object_id.to_s(16)} @collection=#{collection}>") expect(hooks.to_s).to eql(hooks.inspect) end end
Version data entries
8 entries across 8 versions & 1 rubygems