[rspec-users] how to spec views

Luis Lavena luislavena at gmail.com
Mon Oct 1 20:48:23 EDT 2007

On 10/1/07, Andrew WC Brown <omen.king at gmail.com> wrote:
> Specing Image Tags?
>   it "should show a propaganda image" do
>    render "/games/index.rhtml"
>    response.should have_tag('img','signup_propaganda.gif')
>   end
have_tag expect 'tag' and 'content'...

There was a previous discussion on how to assert on HTML element attributes.


Luis Lavena
Multimedia systems
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi

More information about the rspec-users mailing list