J'utilise le capybara avec le concombre dans les rails 2.3.9.Comment vérifier qu'un lien pointe vers la bonne image et qu'il a la bonne cible et le bon titre
Voici mon code html
<a href="http://twitter.com/dorelal" target="_blank" title="twitter">
<img alt="twitter" src="/images/social/twitter.png?1284129939" />
</a>
Je veux vérifier les éléments suivants
image should be ending with twitter.png
image alt should be "twitter"
link should have href "http://twitter.com/dorelal"
link should have target "_blank"
link should have title "twitter"