Nick Sieger: Tag plugintag:blog.nicksieger.com,2005:TypoTypo2007-08-31T16:57:59+00:00Nick Siegerurn:uuid:8396524a-7e00-4aad-8727-a5a0b3ec7ef32006-11-15T15:46:00+00:002007-08-31T16:57:59+00:00RSpec Autotest now a Rails Plugin<p>Inspired by a <a href="http://rubyforge.org/pipermail/rspec-devel/2006-November/001219.html">posting on the RSpec list</a> and recent <a href="http://blog.nicksieger.com/articles/2006/09/13/auto-rspec#comment-143">comments stating that my Auto RSpec hack wasn’t working</a>, I’ve bitten the bullet and upgraded to <a href="http://rspec.rubyforge.org/upgrade.html">RSpec 0.7.2</a>, and made <code>rspec_autotest</code> <a href="http://svn.caldersphere.net/svn/main/plugins/rspec_autotest">a plugin</a> in the process. So, herewith are the necessary incantations to auto-rspec your project. If you’ve tried my hack already, please remove any bits you previously had installed.</p>
<ul>
<li>Install RSpec on Rails, following the <a href="http://rspec.rubyforge.org/documentation/rails/install.html">original instructions</a>. As of RSpec 0.7.3, the specific version of ZenTest is no longer required. Also, diff-lcs is required to show unified diff output on <code>should ==</code> failures.</li>
</ul>
<div class="typocode"><pre><code class="typocode_default ">gem install zentest -v 3.4.1
gem install diff-lcs
gem install rspec
script/plugin install svn://rubyforge.org/var/svn/rspec/tags/REL_0_7_2/vendor/rspec_on_rails/vendor/plugins/rspec</code></pre></div>
<ul>
<li>Install <code>rspec_autotest</code></li>
</ul>
<div class="typocode"><pre><code class="typocode_default ">script/plugin install http://svn.caldersphere.net/svn/main/plugins/rspec_autotest</code></pre></div>
<ul>
<li>Start autotest</li>
</ul>
<div class="typocode"><pre><code class="typocode_default ">rake spec:autotest</code></pre></div>
<p>Please let me know if you experience any problems!</p>