[Pharo] Personal fitness tracker web app.
Update MFTTrainee unit tests.
src/MyFitnessTracker-Core-Tests/MFTTraineeTest.class.st
@@ -29,8 +29,8 @@
29
29
| trainee |
30
30
trainee := MFTTrainee new.
31
31
32
Removed:
self assert: trainee routine class equals: MFTRoutine.
33
Removed:
self assert: trainee routine workouts isEmpty.
32
Added:
self assert: trainee currentRoutine class equals: MFTRoutine.
33
Added:
self assert: trainee currentRoutine workouts isEmpty.
34
34
self assert: trainee logBook class equals: MFTWorkoutLogBook.
35
35
self assert: trainee logBook workoutLogs isEmpty
36
36
]
@@ -101,7 +101,7 @@
101
101
routine workouts: {
102
102
firstWorkout.
103
103
secondWorkout }.
104
Removed:
trainee routine: routine.
104
Added:
trainee currentRoutine: routine.
105
105
106
106
self
107
107
assert: trainee nextWorkoutPrescription
@@ -125,7 +125,7 @@
125
125
routine workouts: {
126
126
firstWorkout.
127
127
secondWorkout }.
128
Removed:
trainee routine: routine.
128
Added:
trainee currentRoutine: routine.
129
129
log := MFTWorkoutLog new.
130
130
log prescription: firstWorkout.
131
131
log finish: DateAndTime now.
@@ -147,7 +147,7 @@
147
147
routine workouts: {
148
148
firstWorkout.
149
149
secondWorkout }.
150
Removed:
trainee routine: routine.
150
Added:
trainee currentRoutine: routine.
151
151
log := MFTWorkoutLog new.
152
152
log prescription: secondWorkout.
153
153
log finish: DateAndTime now.
@@ -165,7 +165,7 @@
165
165
trainee := MFTTrainee new.
166
166
routine := MFTRoutine new.
167
167
168
Removed:
trainee routine: routine.
168
Added:
trainee currentRoutine: routine.
169
169
170
Removed:
self assert: trainee routine identicalTo: routine
170
Added:
self assert: trainee currentRoutine identicalTo: routine
171
171
]