我在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"