Assert_select - seemingly unrelated error?

I’m getting

  1. 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

....

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

On Fri, 24 Aug 2007, Hugh S. wrote:

I’m getting

  1. 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”

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