Group Group Group Group Group Group Group Group Group

Errata - Chapter 3 - Page 60?

Not sure if this could be an error, but on page 60, on Testing Initial Conditions, after add the code on viewDidLoad()

let title = AppState.notStarted.nextStateButtonLabel
startButton.setTitle(title, for: .normal)

We go back to tests and we need to add this

// given
sut.viewDidLoad()

The error is not the logic, it is the comment, it should be when shouldn’t it?, because that is performing an action, am I wrong?

Regards

Thank you for bringing this up to our attention @fdorado985! I do see the comment “given” on page 60. Not sure if the author(s) meant to have it say “given”.