spec/unit/events_spec.rb in finite_machine-0.1.0 vs spec/unit/events_spec.rb in finite_machine-0.2.0
- old
+ new
@@ -145,10 +145,10 @@
}
end
expect(fsm.current).to eql(:green)
- expect { fsm.stop }.to raise_error(FiniteMachine::TransitionError, /state 'green'/)
+ expect { fsm.stop }.to raise_error(FiniteMachine::InvalidStateError, /state 'green'/)
end
context 'when multiple from states' do
it "allows for array from key" do
fsm = FiniteMachine.define do