On Mon, Sep 15, 2008 at 5:32 PM, Jonathan Linowes <[EMAIL PROTECTED]> wrote: > Hi, > suggestions how to add w3 validation to a story step? > eg > Then the page should be valid >
You could write a "then" step that takes the current response.body, uploads it to the w3 validator, and checks the the response. Rather than uploading you could use the ruby tidy bindings to do offline validation which would most likely be much faster. See http://tidy.rubyforge.org/ for more information. -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users