On 17 Mar 2008, at 18:41, Kyle Hargraves wrote:
We discussed this in a ticket on lighthouse, and I ended up writing a
workalike that's sitting atop hpricot. It's not quite identical, but
generally close enough and so far does everything I've needed:
http://github.com/pd/rspec_hpricot_matchers
Patches and/or suggestions welcome if you need anything else out of it
Kyle
Hi Kyle
That's brilliant! I looked for something but couldn't find anything.
I did some work on it this afternoon and got as far as
@elements.should have_tag("#selector", :count => 2)
but didn't manage inner text comparisons or nested matchers.
I'm unfamiliar with git - what's the best way to include that code in
a Rails app stored in SVN? RTFM link to the git docs or similar
welcome...
When I've finished this contract I hope to spend some time working on
open source code for story/runner selenium integration, if so I will
definitely put anything relevant back into that matcher.
Ashley
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users