@@ -62,10 +62,10 @@ class FsmTest extends Specification {
62
62
63
63
when : ' on-from-into'
64
64
def fsm = Fsm . create(" initialState" ) {
65
- it. add { it. on _event1 from _event1From into _event1Into } // it.on from into
66
- it. add { it. from _event2From on _event2 into _event2Into } // from it.on into
67
- it. add { it. from _event3From into _event3Into on _event3 } // from into on
68
- it. add { it. into _event4Into from _event4From on _event4 } // into from on
65
+ it. add { it. on _event1 from _event1From into _event1Into } // it.on from into
66
+ it. add { it. from _event2From on _event2 into _event2Into } // from it.on into
67
+ it. add { it. from _event3From into _event3Into on _event3 } // from into on
68
+ it. add { it. into _event4Into from _event4From on _event4 } // into from on
69
69
}
70
70
71
71
then : ' outcome is always the same'
@@ -100,7 +100,7 @@ class FsmTest extends Specification {
100
100
101
101
and : ' create fsm with single transition not designed for state'
102
102
def fsm = Fsm . create(_state) {
103
- it. add { it. on _event from ' stateFrom' into ' stateTo' }
103
+ it. add { it. on _event from ' stateFrom' into ' stateTo' }
104
104
}
105
105
106
106
when : ' transition is not designed for current state'
@@ -121,7 +121,7 @@ class FsmTest extends Specification {
121
121
122
122
and : ' create fsm with single transition designed for state'
123
123
def fsm = Fsm . create(_state) {
124
- it. add { it. on _event from _state into _stateTo }
124
+ it. add { it. on _event from _state into _stateTo }
125
125
}
126
126
127
127
when : ' transition is designed for current state'
@@ -145,7 +145,7 @@ class FsmTest extends Specification {
145
145
146
146
given : ' create fsm with single transition'
147
147
def fsm = Fsm . create(' initialState' ) {
148
- it. add { it. on ' event' from ' initialState' into ' state2' }
148
+ it. add { it. on ' event' from ' initialState' into ' state2' }
149
149
}
150
150
151
151
and : ' state changes to state2'
0 commit comments