# Agile Web Development with Rails 8: Part II, Chapter 7, Task 7B. Wrong code listing page 94

**URL:** <https://forum.devtalk.com/t/agile-web-development-with-rails-8-part-ii-chapter-7-task-7b-wrong-code-listing-page-94/178684>\
**Category:** PragProg Customers\
**Tags:** book-agile-web-development-with-rails-8, errata\
**Created:** [26 November 2024 09:06 UTC](https://forum.devtalk.com/t/agile-web-development-with-rails-8-part-ii-chapter-7-task-7b-wrong-code-listing-page-94/178684 "2024-11-26T09:06:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eimantas](https://forum.devtalk.com/user_avatar/forum.devtalk.com/eimantas/32/903_2.png) [@eimantas](https://forum.devtalk.com/u/eimantas)\
**Post date:** [26 November 2024 09:06 UTC](https://forum.devtalk.com/t/agile-web-development-with-rails-8-part-ii-chapter-7-task-7b-wrong-code-listing-page-94/178684/1 "2024-11-26T09:06:02Z")

</div>

In a `test "image url"` there are a couple of product creations and assertions of validity. However text afterwards states that:

> Rather than write the nine separate tests, we’ve used a couple of loops—one to check the cases we expect to pass validation and the second to try cases we expect to fail

The code listing does not include any loops.

---

<div class="post-metadata">

**Author:** ![rubys](https://forum.devtalk.com/user_avatar/forum.devtalk.com/rubys/32/3797_2.png) [@rubys](https://forum.devtalk.com/u/rubys)\
**Post date:** [4 February 2025 13:59 UTC](https://forum.devtalk.com/t/agile-web-development-with-rails-8-part-ii-chapter-7-task-7b-wrong-code-listing-page-94/178684/2 "2025-02-04T13:59:33Z")

</div>

Code is right, that prose applied to prior editions of this book. Thanks!
