spec/unit/events_spec.rb in finite_machine-0.10.1 vs spec/unit/events_spec.rb in finite_machine-0.10.2
- old
+ new
@@ -179,10 +179,13 @@
}
end
expect(fsm.current).to eql(:green)
- expect { fsm.stop }.to raise_error(FiniteMachine::InvalidStateError, /state 'green'/)
+ expect {
+ fsm.stop
+ }.to raise_error(FiniteMachine::InvalidStateError,
+ /inappropriate current state 'green'/)
end
it "allows to transition to any state" do
fsm = FiniteMachine.define do
initial :green