[rspec-users] w3 validation

Zach Dennis zach.dennis at gmail.com
Mon Sep 15 18:16:23 EDT 2008


On Mon, Sep 15, 2008 at 5:32 PM, Jonathan Linowes
<jonathan at parkerhill.com> 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


More information about the rspec-users mailing list