# Erratum(?): Agile Web Development with Rails 7.2, Validation and Unit Testing (~page 92)

**URL:** <https://forum.devtalk.com/t/erratum-agile-web-development-with-rails-7-2-validation-and-unit-testing-page-92/173519>\
**Category:** PragProg Customers\
**Tags:** book-agile-web-development-with-rails-7-2, errata\
**Created:** [11 October 2024 08:39 UTC](https://forum.devtalk.com/t/erratum-agile-web-development-with-rails-7-2-validation-and-unit-testing-page-92/173519 "2024-10-11T08:39:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piotr12](https://forum.devtalk.com/user_avatar/forum.devtalk.com/piotr12/32/6640_2.png) [@Piotr12](https://forum.devtalk.com/u/Piotr12)\
**Post date:** [11 October 2024 08:39 UTC](https://forum.devtalk.com/t/erratum-agile-web-development-with-rails-7-2-validation-and-unit-testing-page-92/173519/1 "2024-10-11T08:39:25Z")

</div>

@rubys

I have encountered different errors there, originating from the duplicated title.

Solution was to create a product with another title instead.

```auto
test "should create product" do
    assert_difference("Product.count") do
      part2_title = @product.title + " part2"
      post products_url, params: { product: { description: @product.description, image_url: @product.image_url, price: @product.price, title: part2_title } }
    end

    assert_redirected_to product_url(Product.last)
  end

```

Also - I have not seen the ‘ **The asset “MyString” is not present in**  
**the asset pipeline.** ’ error at all.

Running on Rails 8.0.0.beta1 so maybe this is the reason (?)
