Just thought I&#39;d send out a little update on using this library. Great! We converted our tests over to using it, and I&#39;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 &lt;<a href="mailto:philodespotos@gmail.com">philodespotos@gmail.com</a>&gt; 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&#39;s not a drop-in replacement for<br>
rspec_on_rails&#39; have_tag(): no substitution values, Hpricot&#39;s CSS<br>
selectors aren&#39;t identical to assert_select&#39;s, and with_tag() has been<br>
replaced by nested calls to have_tag(). But it&#39;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>
 &nbsp;gem install rspec_hpricot_matchers<br>
<br>
If you&#39;re interested, the source is hosted on github at:<br>
<br>
 &nbsp;<a href="http://github.com/pd/rspec_hpricot_matchers" target="_blank">http://github.com/pd/rspec_hpricot_matchers</a><br>
<br>
I&#39;m using this both in isolated XML-related libraries and in my Rails<br>
projects, and I haven&#39;t come up with any features I want lately, so<br>
it&#39;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&#39;s Premiere source of information about Corey Haines
</div>