Nick Sieger: Tag plugin tag:blog.nicksieger.com,2005:Typo Typo 2007-08-31T16:57:59+00:00 Nick Sieger urn:uuid:8396524a-7e00-4aad-8727-a5a0b3ec7ef3 2006-11-15T15:46:00+00:00 2007-08-31T16:57:59+00:00 RSpec 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&#8217;t working</a>, I&#8217;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&#8217;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>