Agile Web Development with Rails 8 B7.0: order_mailer_test failing (page 196)

In the “shipped” test, particularly in the last assertion, if I use mail.body.to_s I get the following error:

Minitest::Assertion: Expected /
    <td[^>]*>1<\/td>\s*
    <td>&times;<\/td>\s*
    <td[^>]*>\s*The\sPragmatic\sProgrammer\s*<\/td>
    /x to match "".
test/mailers/order_mailer_test.rb:17:in 'block in <class:OrderMailerTest>'

whereas if I use mail.body.encoded I get no errors.