assert_select - seemingly unrelated error?

I'm getting

  7) Error:
test_loan_to_bad_user(AdminControllerTest):
RuntimeError: expected > (got "@attributes={\"description_id\"=>" for <Device:0x7ef70994 @attributes={"description_id"=>, {})

from an
   assert_select "div.badborrower"

statement. I'm trying to test for existence of a
   <div class="badborrower">....</div>

Why is it expecting '>' at all (surely angle brackets should be
matched?), and what has that got to do with my devices?

Rails 1.2.3 on cygwin, WinXP.

        Thank you,
        Hugh

Turns out I'd forgotten to wrap some stuff in h() so was getting
dodgy HTML. So I've fixed this. Thanks anyway to anyone reading :slight_smile:

        Hugh