<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Nick Sieger: RSpec Autotest now a Rails Plugin</title>
  <id>tag:blog.nicksieger.com,2005:Typo</id>
  <generator uri="http://www.typosphere.org" version="4.0">Typo</generator>
  <link rel="self" type="application/atom+xml" href="http://blog.nicksieger.com/xml/atom10/article/150/feed.xml"/>
  <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin"/>
  <updated>2007-08-31T16:58:03+00:00</updated>
  <entry>
    <author>
      <name>Nick</name>
    </author>
    <id>urn:uuid:501eaeb4-cf37-461e-8dde-bdbdf7f8799e</id>
    <published>2007-02-21T20:57:21+00:00</published>
    <updated>2007-08-31T16:58:03+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by Nick</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-211"/>
    <content type="html">&lt;p&gt;mitjok:  I haven&amp;#8217;t heard of that problem before.  You&amp;#8217;re saying that it&amp;#8217;s missing in &lt;code&gt;rake -T&lt;/code&gt; output?&lt;/p&gt;

&lt;p&gt;Can you verify that the &lt;code&gt;vendor/plugins/rspec_autotest/tasks/rspec_autotest.rake&lt;/code&gt; file exists and has contents &lt;a href='http://svn.caldersphere.net/svn/main/plugins/rspec_autotest/tasks/rspec_autotest.rake' rel="nofollow"&gt;similar to this&lt;/a&gt;?&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>mitjok</name>
    </author>
    <id>urn:uuid:c992f3c0-64e5-459b-91c5-5684490ca908</id>
    <published>2007-02-21T09:57:34+00:00</published>
    <updated>2007-08-31T16:58:03+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by mitjok</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-210"/>
    <content type="html">&lt;p&gt;installed autotest plugin as described above, but spec:autotest did non appear in  rake tasks list..
anyone had such problem?
rspec_autotest: r69
RSpec-0.7.5.1 r1395
rspec_on_rails r1515&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Chris Williams</name>
    </author>
    <id>urn:uuid:c7ecee2a-dfe5-415f-af4f-12a7570baae6</id>
    <published>2007-02-09T21:52:47+00:00</published>
    <updated>2007-08-31T16:58:02+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by Chris Williams</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-208"/>
    <content type="html">&lt;p&gt;I had to change @spec_command to:&lt;/p&gt;

&lt;p&gt;@spec_command = &amp;#8220;spec.cmd &amp;#8211;diff unified&amp;#8221;&lt;/p&gt;

&lt;p&gt;To get this to run under Windows. Otherwise autotest tried to execute the ruby file directly, which causes an error.&lt;/p&gt;

&lt;p&gt;Otherwise, seems to work so far. Thanks!!&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Chris Anderson</name>
    </author>
    <id>urn:uuid:3f6dff1f-f921-4b66-9de7-35df17c96fa9</id>
    <published>2007-01-06T03:48:43+00:00</published>
    <updated>2007-08-31T16:58:02+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by Chris Anderson</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-180"/>
    <content type="html">&lt;p&gt;Rad! Thanks!&lt;/p&gt;

&lt;p&gt;I&amp;#8217;m using @spec_command = “drbspec –diff unified”&lt;/p&gt;

&lt;p&gt;which I think is just the new version of script/railsspec&lt;/p&gt;

&lt;p&gt;Chris&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Nick</name>
    </author>
    <id>urn:uuid:b42062c7-e55c-43a1-a14e-ccc578b44d1c</id>
    <published>2006-12-21T16:32:03+00:00</published>
    <updated>2007-08-31T16:58:01+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by Nick</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-174"/>
    <content type="html">&lt;p&gt;@Michael:  I think this is expected behavior for autotest &amp;#8211; I&amp;#8217;ve already noticed this and assumed it was standard behavior.  The only time autotest reruns the whole suite is after I&amp;#8217;ve just fixed a failing test or spec.  Is it possible that&amp;#8217;s what you&amp;#8217;re observing?&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Michael Johnston</name>
    </author>
    <id>urn:uuid:be21ba84-5339-4565-8f33-226041ff9d39</id>
    <published>2006-12-21T10:45:09+00:00</published>
    <updated>2007-08-31T16:58:01+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by Michael Johnston</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-173"/>
    <content type="html">&lt;p&gt;Since upgrading to rspec 0.7.5, when a currently being worked-on spec passes, autotest no longer reruns the whole suite of tests.&lt;/p&gt;

&lt;p&gt;To rephrase: on first run, autotest runs all specs.&lt;/p&gt;

&lt;p&gt;after editing a file(s) it re-runs the tests for those files.&lt;/p&gt;

&lt;p&gt;If those pass, it USED to then re-run the whole suite of files. But after upgrading to rspec 0.7.5 it no longer does this, rendering it useless as the only way to see the next failing spec to work on is to restart it (or touch everything)&lt;/p&gt;

&lt;p&gt;Has anyone else encountered this problem or have any idea what could be causing it?&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Jodi</name>
    </author>
    <id>urn:uuid:48d8369c-4a68-4a79-a257-454dbd2c329d</id>
    <published>2006-12-15T22:52:56+00:00</published>
    <updated>2007-08-31T16:58:01+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by Jodi</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-169"/>
    <content type="html">&lt;p&gt;Thank you v-much Nick.&lt;/p&gt;

&lt;p&gt;Just making the leap to rspec on a new project - very happy to continue having autotest - and the growl notification to boot.&lt;/p&gt;

&lt;p&gt;Jodi&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Nick</name>
    </author>
    <id>urn:uuid:9be555b6-f0f4-4f20-8518-1d624482efdb</id>
    <published>2006-11-29T15:37:34+00:00</published>
    <updated>2007-08-31T16:58:01+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by Nick</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-166"/>
    <content type="html">&lt;p&gt;@Shakhruz: yeah, you&amp;#8217;re right, especially about diff-lcs &amp;#8211; that should be mentioned.  I suppose if I used&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;File.join(File.dirname(__FILE__), "..", "lib", "rspec_autotest")
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;instead that would be more platform agnostic.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Shakhruz</name>
    </author>
    <id>urn:uuid:cd0f46f9-dfb2-4e26-ae41-0bbc1bfc9513</id>
    <published>2006-11-28T22:01:44+00:00</published>
    <updated>2007-08-31T16:58:01+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by Shakhruz</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-165"/>
    <content type="html">&lt;p&gt;Hi Nick!
Thanks for the plugin!
I had to change slashes in rspec_autotest.rake, line 3  : require File.dirname(&lt;strong&gt;FILE&lt;/strong&gt;) + &amp;#8216;..lib
spec_autotest&amp;#8217;
and make &amp;#8216;gem install diff-lcs&amp;#8217;&lt;/p&gt;

&lt;p&gt;to make in work on winxp (yes, i&amp;#8217;m still   there :))&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Akira</name>
    </author>
    <id>urn:uuid:0f00faec-fde7-49cc-943f-5bc750abc1c9</id>
    <published>2006-11-18T20:16:01+00:00</published>
    <updated>2007-08-31T16:58:00+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by Akira</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-156"/>
    <content type="html">&lt;p&gt;Is there a way to use the rspec_autotest outside of Rails i.e. generic Ruby code?&lt;/p&gt;

&lt;p&gt;i.e. autotest can automatically pick up code and test files by placing the files in /lib and /test directories, respectively.&lt;/p&gt;

&lt;p&gt;Is there similar functionality with rspec_autotest?&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Nick</name>
    </author>
    <id>urn:uuid:a72a1ca8-928d-4288-9be7-1ff69bb481de</id>
    <published>2006-11-17T17:39:15+00:00</published>
    <updated>2007-08-31T16:58:00+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by Nick</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-155"/>
    <content type="html">&lt;p&gt;Well, &lt;a href='http://rubyforge.org/tracker/index.php?func=detail&amp;amp;aid=6732&amp;amp;group_id=419&amp;amp;atid=1680' rel="nofollow"&gt;here&amp;#8217;s a patch&lt;/a&gt;.  I&amp;#8217;d be happy to have it included in Autotest, I just didn&amp;#8217;t know if you guys thought it was appropriate to have it there.&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Ryan Davis</name>
    </author>
    <id>urn:uuid:53bf4ec9-1210-4a9f-b450-3482c972982d</id>
    <published>2006-11-17T16:09:07+00:00</published>
    <updated>2007-08-31T16:58:00+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by Ryan Davis</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-154"/>
    <content type="html">&lt;p&gt;Why didn&amp;#8217;t you submit this as a patch to ZenTest???&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Nick</name>
    </author>
    <id>urn:uuid:f8dda09d-d7ca-4bcb-8a55-137e91dba8fa</id>
    <published>2006-11-17T15:58:53+00:00</published>
    <updated>2007-08-31T16:58:00+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by Nick</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-153"/>
    <content type="html">&lt;p&gt;@Marc: good idea, I should let you configure whether or not to use &lt;code&gt;rails_spec&lt;/code&gt; in the next version.  &lt;a href='http://trac.caldersphere.net/projects/main/ticket/119' rel="nofollow"&gt;Ticked filed&lt;/a&gt;.&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Marc Beyerlin</name>
    </author>
    <id>urn:uuid:139d5aa9-5a71-4e67-9ddf-d8a679160da8</id>
    <published>2006-11-16T22:01:34+00:00</published>
    <updated>2007-08-31T16:57:59+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by Marc Beyerlin</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-152"/>
    <content type="html">&lt;p&gt;This is really cool! Thanx for that.&lt;/p&gt;

&lt;p&gt;I recommend using autotest with the rails&lt;em&gt;spec&lt;/em&gt;server. This is much faster. You only have to start a reails&lt;em&gt;spec&lt;/em&gt;server with:&lt;/p&gt;

&lt;p&gt;script/rails&lt;em&gt;spec&lt;/em&gt;server&lt;/p&gt;

&lt;p&gt;And change the spec&lt;em&gt;command in rspec&lt;/em&gt;autotest to: &lt;/p&gt;

&lt;h1&gt;@spec_command = &amp;#8220;spec &amp;#8211;diff unified&amp;#8221;&lt;/h1&gt;

&lt;p&gt;@spec&lt;em&gt;command = &amp;#8220;script/rails&lt;/em&gt;spec &amp;#8211;diff unified&amp;#8221; &lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Josh C</name>
    </author>
    <id>urn:uuid:507404ad-3c28-4287-800f-f0935ff06703</id>
    <published>2006-11-15T18:07:14+00:00</published>
    <updated>2007-08-31T16:57:59+00:00</updated>
    <title>Comment on RSpec Autotest now a Rails Plugin by Josh C</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin#comment-151"/>
    <content type="html">&lt;p&gt;Wow thanks Nick, been waiting for this!&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Nick Sieger</name>
    </author>
    <id>urn:uuid:8396524a-7e00-4aad-8727-a5a0b3ec7ef3</id>
    <published>2006-11-15T15:46:00+00:00</published>
    <updated>2007-08-31T16:57:59+00:00</updated>
    <title>RSpec Autotest now a Rails Plugin</title>
    <link rel="alternate" type="text/html" href="http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin"/>
    <category term="rspec" scheme="http://blog.nicksieger.com/articles/tag/rspec"/>
    <category term="rails" scheme="http://blog.nicksieger.com/articles/tag/rails"/>
    <category term="plugin" scheme="http://blog.nicksieger.com/articles/tag/plugin"/>
    <content type="html">&lt;p&gt;Inspired by a &lt;a href="http://rubyforge.org/pipermail/rspec-devel/2006-November/001219.html"&gt;posting on the RSpec list&lt;/a&gt; and recent &lt;a href="http://blog.nicksieger.com/articles/2006/09/13/auto-rspec#comment-143"&gt;comments stating that my Auto RSpec hack wasn&amp;#8217;t working&lt;/a&gt;, I&amp;#8217;ve bitten the bullet and upgraded to &lt;a href="http://rspec.rubyforge.org/upgrade.html"&gt;RSpec 0.7.2&lt;/a&gt;, and made &lt;code&gt;rspec_autotest&lt;/code&gt; &lt;a href="http://svn.caldersphere.net/svn/main/plugins/rspec_autotest"&gt;a plugin&lt;/a&gt; in the process.  So, herewith are the necessary incantations to auto-rspec your project.  If you&amp;#8217;ve tried my hack already, please remove any bits you previously had installed.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install RSpec on Rails, following the &lt;a href="http://rspec.rubyforge.org/documentation/rails/install.html"&gt;original instructions&lt;/a&gt;.  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 &lt;code&gt;should ==&lt;/code&gt; failures.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;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&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Install &lt;code&gt;rspec_autotest&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;script/plugin install http://svn.caldersphere.net/svn/main/plugins/rspec_autotest&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Start autotest&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;rake spec:autotest&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Please let me know if you experience any problems!&lt;/p&gt;</content>
  </entry>
</feed>
