Forum: Ruby on Rails how do I test links in templates?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Leo -. (Guest)
on 2006-04-29 00:21
(Received via mailing list)
Hello everyone!

Sorry, if it's stupid question, but I can't figure out how to do this.
I have a set of statements, for example, 'login page should have a
link to register new user' and 'login page should have a link to
password recovery'. How do I transform it into tests? Where it should
go? It does not look like functional tests or integration tests. To
me, it looks like 'template test'. How do you suggest to test these

Dan Venkitachalam (Guest)
on 2006-04-29 04:46
(Received via mailing list)
Hi Oleg.

I believe you can put these tests into your functional tests, using the
assert_tag method to test for the presence of these links.  But maybe
someone with more experience can correct me.


This topic is locked and can not be replied to.