I have this failure when running the tests after adding the email support in H1.
The book states “We don’t even need to modify the partial, because the existing one we already have will do just fine”
However, in an earlier “playtime”, a decrement button was added to the cart, so I have in my _line_item.html.erb partial a “button_to”.
I believe the error occurs becasue buttons aren’t supported in emails.
I see three options:
Identify inside the partial (_line_item.html.erb) when it’s used from action mailer and exclude the button in that instance.
Have a different _line_item.html.erb for use by the mailer.
Take the button out of the cart and put it somewhere else.
I’d like to understand how to do (1) and (2) but it isn’t clear to me. Any pointers ?