[Ruby] assert_links_to question
Eric Hodel
drbrain at segment7.net
Sat Jan 6 16:35:58 PST 2007
On Jan 6, 2007, at 09:48, Joe Van Dyk wrote:
> Am I going blind?
>
> expected tag, but no tag found matching
> { :attributes => { :href => "http://test.host/puzzle_contests/1" },
> :content => "<img alt=\"Puzzlethon!\"src=\"/images/puzzlethon.jpg?
> 1167867755\" />",
> :tag => "a"}
>
> in:
> "<a href=\"http://test.host/puzzle_contests/1\"><img alt=
> \"Puzzlethon!\" src=\"/images/puzzlethon.jpg?1167867755\" /></a>\n".
>
> How is that not found? (I'm using named restful URLs, if it matters.)
You can't put HTML in :content. Leave out content or roll your own
assert_tag. assert_tag sucks that way.
--
Eric Hodel - drbrain at segment7.net - http://blog.segment7.net
I LIT YOUR GEM ON FIRE!
More information about the Ruby
mailing list