[rspec-users] w3 validation
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:
> suggestions how to add w3 validation to a story step?
> 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.
More information about the rspec-users