-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure show_contents_list? returns a boolean
The original implementation could result in the method returning nil rather than true or false. Which is unexpected, and has been a barrier to changing when and where we display contents lists because of confusing test failures. The test amended in this commit should have been failing all along, because the body object passed in contains only a single H2 with no proceeding content of 416 characters, and therefore fails all of the requirements for showing a contents list. Now that the show_contents_list returns true or false, this test has been updated accordingly.
- Loading branch information
Showing
2 changed files
with
15 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters