Sha256: f06466cc4189968b047798f08c3a2798bd08f76717f7d74c5ca8e1d8c8f56908
Contents?: true
Size: 519 Bytes
Versions: 4
Compression:
Stored size: 519 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe FiniteMachine::Event, '#inspect' do let(:machine) { double(:machine) } let(:object) { described_class } subject(:event) { object.new(machine, name: :test) } it "adds multiple transitions" do transition = double(:transition) event << transition expect(event.inspect).to eq("<#FiniteMachine::Event @name=test, @silent=false, @transitions=[#{transition.inspect}]>") end it "prints event name" do expect(event.to_s).to eq('test') end end
Version data entries
4 entries across 4 versions & 1 rubygems