On 10/1/07, Andrew WC Brown <[EMAIL PROTECTED]> 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.

http://rubyforge.org/pipermail/rspec-users/2007-September/003205.html

-- 
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
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to