Search the web
Sign In
New User? Sign Up
TestFirstUserInterfaces
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
asserting HTML by example   Message List  
Reply | Forward Message #1039 of 1051 |
Re: [TFUI] asserting HTML by example

Jason Citron wrote:
>
> For structural HTML testing you should check out assert_select. It comes
> with Rails 2.0.
>
> Useful for testing XML too.

Try writing the equivalent of my assertion with it.

I suspect you can't, because it can't constrain the element order.

And the rest would be extremely verbose...

--
Phlip



Thu Mar 12, 2009 12:29 pm

phlipcpp
Offline Offline
Send Email Send Email

Forward
Message #1039 of 1051 |
Expand Messages Author Sort by Date

extremists: HTML is easy to test and hard to test well. A unit test must intercept and parse it, hopefully _before_ it goes thru a web server. I just wrote an...
Phlip
phlipcpp
Offline Send Email
Mar 12, 2009
5:28 am

For structural HTML testing you should check out assert_select. It comes with Rails 2.0. Useful for testing XML too. ...
Jason Citron
clash_y
Offline Send Email
Mar 12, 2009
5:33 am

... Try writing the equivalent of my assertion with it. I suspect you can't, because it can't constrain the element order. And the rest would be extremely...
Phlip
phlipcpp
Offline Send Email
Mar 12, 2009
12:29 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help