Just thought I'd send out a little update on using this library. Great! We converted our tests over to using it, and I'm very happy with it. Good job, Kyle! Keep up the good work.<div><br></div><div>It did take a bit of time to convert (using @ in attributes, for example), but it was well worth it.</div>
<div><br></div><div>-Corey<br><br><div class="gmail_quote">On Wed, Mar 26, 2008 at 3:08 PM, Kyle Hargraves <<a href="mailto:philodespotos@gmail.com">philodespotos@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello everyone,<br>
<br>
A few weeks ago, I put together a little project that provides a<br>
have_tag() matcher look-alike that can be used outside of Rails<br>
projects, backed by Hpricot, which I very creatively named<br>
rspec_hpricot_matchers. It's not a drop-in replacement for<br>
rspec_on_rails' have_tag(): no substitution values, Hpricot's CSS<br>
selectors aren't identical to assert_select's, and with_tag() has been<br>
replaced by nested calls to have_tag(). But it's pretty close and even<br>
enjoys a few benefits over the standard implementation.<br>
<br>
I finally got around to registering a project on RubyForge and pushing<br>
a gem, so it is now available with just:<br>
<br>
gem install rspec_hpricot_matchers<br>
<br>
If you're interested, the source is hosted on github at:<br>
<br>
<a href="http://github.com/pd/rspec_hpricot_matchers" target="_blank">http://github.com/pd/rspec_hpricot_matchers</a><br>
<br>
I'm using this both in isolated XML-related libraries and in my Rails<br>
projects, and I haven't come up with any features I want lately, so<br>
it's reasonably stable in my experience. Usage examples are available<br>
in the README, and the specs are simple enough to be another good set<br>
of examples.<br>
<br>
Suggestions, patches and angry flames about list spamming are all welcome.<br>
<br>
Thanks<br>
<br>
Kyle<br>
_______________________________________________<br>
rspec-users mailing list<br>
<a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.coreyhaines.com">http://www.coreyhaines.com</a><br>The Internet's Premiere source of information about Corey Haines
</div>