Skip to content

Commit

Permalink
Adapt a test because it is not valid anymore after changing setModel:
Browse files Browse the repository at this point in the history
  • Loading branch information
koendehondt committed May 5, 2024
1 parent 0952e69 commit 3602ecc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Chapters/CaseStudyOne/CaseStudyOne.md
Original file line number Diff line number Diff line change
Expand Up @@ -582,10 +582,10 @@ ImdbFilmListPresenter >> filmList
^ filmList
```

Let us test that a list has one film and that if we select a non-existent index, the name is still the last valid selected one.
Let us test that a list has one film and that if we select a non-existent index, the name is cleared.

```
ImdbFilmListPresenterTest >> testWhenSelectingOneFilmAndClickingOnEmpty
ImdbFilmListPresenterTest >> testNoSelectionClearsDetails
| name |
"Arrange"
Expand All @@ -601,7 +601,7 @@ ImdbFilmListPresenterTest >> testWhenSelectingOneFilmAndClickingOnEmpty
self assert: presenter filmList listSize equals: 1.
presenter clickFilmAtIndex: 2.
self assert: presenter detail name equals: name
self assert: presenter detail name equals: ''
```


Expand Down

0 comments on commit 3602ecc

Please sign in to comment.