我在rails 2.3.9应用程序中使用黄瓜黄瓜。如何验证链接指向正确的图像,并有正确的目标和标题
这里是我的html代码
<a href="http://twitter.com/dorelal" target="_blank" title="twitter">
<img alt="twitter" src="/images/social/twitter.png?1284129939" />
</a>
我想确认下列各项
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"