<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for Deville Companies and Life</title>
	<atom:link href="http://devillecompanies.org/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://devillecompanies.org</link>
	<description>A father doing Ruby on Rails and RSpec development</description>
	<pubDate>Wed, 09 Jul 2008 02:05:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>Comment on Growl, Autotest and RSpec 1.0.8 by Jeremy Weiland</title>
		<link>http://devillecompanies.org/2007/08/14/growl-autotest-and-rspec-108/#comment-83</link>
		<dc:creator>Jeremy Weiland</dc:creator>
		<pubDate>Sat, 02 Feb 2008 06:24:03 +0000</pubDate>
		<guid isPermaLink="false">http://devillecompanies.org/?p=81#comment-83</guid>
		<description>Thanks, this helped a lot.  I like having a persistent reminder that pending specs have not been written.</description>
		<content:encoded><![CDATA[<p>Thanks, this helped a lot.  I like having a persistent reminder that pending specs have not been written.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Drag and drop to assign to spaces by Karmen</title>
		<link>http://devillecompanies.org/2007/11/27/drag-and-drop-to-assign-to-spaces/#comment-57</link>
		<dc:creator>Karmen</dc:creator>
		<pubDate>Wed, 28 Nov 2007 02:24:24 +0000</pubDate>
		<guid isPermaLink="false">http://devillecompanies.org/2007/11/27/drag-and-drop-to-assign-to-spaces/#comment-57</guid>
		<description>Very cool!  Great tip!</description>
		<content:encoded><![CDATA[<p>Very cool!  Great tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Growl, Autotest and RSpec 1.0.8 by Eric Wollesen</title>
		<link>http://devillecompanies.org/2007/08/14/growl-autotest-and-rspec-108/#comment-46</link>
		<dc:creator>Eric Wollesen</dc:creator>
		<pubDate>Sat, 24 Nov 2007 08:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://devillecompanies.org/?p=81#comment-46</guid>
		<description>Whoops, I typo'd in my previous post.  The line:

if output =~ /[1-9][0-9]?\sfailures/

should read

if output =~ /[1-9][0-9]?\sfailure/

Sorry about that.</description>
		<content:encoded><![CDATA[<p>Whoops, I typo&#8217;d in my previous post.  The line:</p>
<p>if output =~ /[1-9][0-9]?\sfailures/</p>
<p>should read</p>
<p>if output =~ /[1-9][0-9]?\sfailure/</p>
<p>Sorry about that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Growl, Autotest and RSpec 1.0.8 by Eric Wollesen</title>
		<link>http://devillecompanies.org/2007/08/14/growl-autotest-and-rspec-108/#comment-45</link>
		<dc:creator>Eric Wollesen</dc:creator>
		<pubDate>Sat, 24 Nov 2007 08:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://devillecompanies.org/?p=81#comment-45</guid>
		<description>You have a bug in your .autotest file.  I had a case where I had 11 examples, and 10 failures, yet autotest showed the success image.  Here's a new .autotest, note the slightly modified regexp for checking for failures.

module Autotest::Growl
  def self.growl title, msg, img, pri=0, stick=""
    system "growlnotify -n autotest --image #{img} -p #{pri} -m #{ msg.inspect} #{title} #{stick}"
  end

  Autotest.add_hook :ran_command do &#124;autotest&#124;
    output = autotest.results.grep(/\d+\s.*examples?/).last.slice(/(\d+)\s.*examples?,\s(\d+)\s.*failures?(?:,\s(\d+)\s.*pending)?/)    
      if output =~ /[1-9][0-9]?\sfailures/
        growl "Test Results", "#{output}", "~/Library/autotest/rails_fail.png", 2 #, "-s"
      elsif output =~ /pending/
        growl "Test Results", "#{output}", "~/Library/autotest/rails_pending.png"
      else
        growl "Test Results", "#{output}", "~/Library/autotest/rails_ok.png"
      end
  end
end</description>
		<content:encoded><![CDATA[<p>You have a bug in your .autotest file.  I had a case where I had 11 examples, and 10 failures, yet autotest showed the success image.  Here&#8217;s a new .autotest, note the slightly modified regexp for checking for failures.</p>
<p>module Autotest::Growl<br />
  def self.growl title, msg, img, pri=0, stick=&#8221;"<br />
    system &#8220;growlnotify -n autotest &#8211;image #{img} -p #{pri} -m #{ msg.inspect} #{title} #{stick}&#8221;<br />
  end</p>
<p>  Autotest.add_hook :ran_command do |autotest|<br />
    output = autotest.results.grep(/\d+\s.*examples?/).last.slice(/(\d+)\s.*examples?,\s(\d+)\s.*failures?(?:,\s(\d+)\s.*pending)?/)<br />
      if output =~ /[1-9][0-9]?\sfailures/<br />
        growl &#8220;Test Results&#8221;, &#8220;#{output}&#8221;, &#8220;~/Library/autotest/rails_fail.png&#8221;, 2 #, &#8220;-s&#8221;<br />
      elsif output =~ /pending/<br />
        growl &#8220;Test Results&#8221;, &#8220;#{output}&#8221;, &#8220;~/Library/autotest/rails_pending.png&#8221;<br />
      else<br />
        growl &#8220;Test Results&#8221;, &#8220;#{output}&#8221;, &#8220;~/Library/autotest/rails_ok.png&#8221;<br />
      end<br />
  end<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Growl, Autotest and RSpec 1.0.8 by Lance Carlson</title>
		<link>http://devillecompanies.org/2007/08/14/growl-autotest-and-rspec-108/#comment-20</link>
		<dc:creator>Lance Carlson</dc:creator>
		<pubDate>Tue, 25 Sep 2007 15:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://devillecompanies.org/?p=81#comment-20</guid>
		<description>Wait, I looked at your code example again.. wouldn't that mean inspect is not what you're looking for?</description>
		<content:encoded><![CDATA[<p>Wait, I looked at your code example again.. wouldn&#8217;t that mean inspect is not what you&#8217;re looking for?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Growl, Autotest and RSpec 1.0.8 by Lance Carlson</title>
		<link>http://devillecompanies.org/2007/08/14/growl-autotest-and-rspec-108/#comment-19</link>
		<dc:creator>Lance Carlson</dc:creator>
		<pubDate>Tue, 25 Sep 2007 15:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://devillecompanies.org/?p=81#comment-19</guid>
		<description>That's a good reason! I responded to your comment on my blog btw. Also just doing #{msg} worked fine for me.</description>
		<content:encoded><![CDATA[<p>That&#8217;s a good reason! I responded to your comment on my blog btw. Also just doing #{msg} worked fine for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Growl, Autotest and RSpec 1.0.8 by James Deville</title>
		<link>http://devillecompanies.org/2007/08/14/growl-autotest-and-rspec-108/#comment-18</link>
		<dc:creator>James Deville</dc:creator>
		<pubDate>Sun, 23 Sep 2007 18:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://devillecompanies.org/?p=81#comment-18</guid>
		<description>That would be due to me copying the initial version of that script from Daniel (link in article). I imagine the only real reason is to ensure that the message gets turned into a full string as follows:

&lt;pre&gt;
  &lt;code&gt;
begin
  yellow
rescue Exception =&gt; e
  "Error: #{e}"
end # =&gt;  "error undefined local variable or method `yellow' for main:Object"
&lt;/code&gt;
&lt;/pre&gt;

vs:

&lt;pre&gt;
&lt;code&gt;
begin
  yellow
rescue Exception =&gt; e
  "Error: #{e.inspect}"
end # =&gt; "error #&lt;NameError: undefined local variable or method `yellow' for main:Object&gt;"
&lt;/code&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>That would be due to me copying the initial version of that script from Daniel (link in article). I imagine the only real reason is to ensure that the message gets turned into a full string as follows:</p>
<pre>
  <code>
begin
  yellow
rescue Exception => e
  "Error: #{e}"
end # =>  "error undefined local variable or method `yellow' for main:Object"
</code>
</pre>
<p>vs:</p>
<pre>
<code>
begin
  yellow
rescue Exception => e
  "Error: #{e.inspect}"
end # => "error #<nameerror : undefined local variable or method `yellow' for main:Object>&#8221;
</nameerror></code>
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Growl, Autotest and RSpec 1.0.8 by Lance Carlson</title>
		<link>http://devillecompanies.org/2007/08/14/growl-autotest-and-rspec-108/#comment-17</link>
		<dc:creator>Lance Carlson</dc:creator>
		<pubDate>Sun, 23 Sep 2007 17:57:46 +0000</pubDate>
		<guid isPermaLink="false">http://devillecompanies.org/?p=81#comment-17</guid>
		<description>I don't understand why you use msg.inspect. What does that do as opposed to just printing msg?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand why you use msg.inspect. What does that do as opposed to just printing msg?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Growl, Autotest and RSpec 1.0.8 by James Deville</title>
		<link>http://devillecompanies.org/2007/08/14/growl-autotest-and-rspec-108/#comment-16</link>
		<dc:creator>James Deville</dc:creator>
		<pubDate>Sat, 22 Sep 2007 02:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://devillecompanies.org/?p=81#comment-16</guid>
		<description>My first guess would be updating ZenTest. I believe there was a update to ZenTest that made it work better with RSpec.

JD</description>
		<content:encoded><![CDATA[<p>My first guess would be updating ZenTest. I believe there was a update to ZenTest that made it work better with RSpec.</p>
<p>JD</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Growl, Autotest and RSpec 1.0.8 by Steve</title>
		<link>http://devillecompanies.org/2007/08/14/growl-autotest-and-rspec-108/#comment-15</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 22 Sep 2007 01:45:26 +0000</pubDate>
		<guid isPermaLink="false">http://devillecompanies.org/?p=81#comment-15</guid>
		<description>Hey, I just read your article but have been having difficulty in getting everything working together. When I try to run 'autotest', I get this error:

loading rspec_rails_autotest
spec --diff unified spec/models/weather_spec.rb spec/controllers/weathers_contro
ller_spec.rb
c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/lib/autotest.rb:144:in `open': Exec
 format error -  spec --diff unified spec/models/weather_spec.rb spec/controller
s/weathers_controller_spec.rb (Errno::ENOEXEC)
        from c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/lib/autotest.rb:144:in
 `run_tests'
        from c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/lib/autotest.rb:127:in
 `get_to_green'
        from c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/lib/autotest.rb:107:in
 `run'
        from c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/lib/autotest.rb:105:in
 `loop'
        from c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/lib/autotest.rb:105:in
 `run'
        from c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/lib/autotest.rb:63:in
`run'
        from c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/bin/autotest:36
        from c:/ruby/bin/autotest:16:in `load'
        from c:/ruby/bin/autotest:16

--If you can help in any way, i'd greatly appreciate it! Thanks!</description>
		<content:encoded><![CDATA[<p>Hey, I just read your article but have been having difficulty in getting everything working together. When I try to run &#8216;autotest&#8217;, I get this error:</p>
<p>loading rspec_rails_autotest<br />
spec &#8211;diff unified spec/models/weather_spec.rb spec/controllers/weathers_contro<br />
ller_spec.rb<br />
c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/lib/autotest.rb:144:in `open&#8217;: Exec<br />
 format error -  spec &#8211;diff unified spec/models/weather_spec.rb spec/controller<br />
s/weathers_controller_spec.rb (Errno::ENOEXEC)<br />
        from c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/lib/autotest.rb:144:in<br />
 `run_tests&#8217;<br />
        from c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/lib/autotest.rb:127:in<br />
 `get_to_green&#8217;<br />
        from c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/lib/autotest.rb:107:in<br />
 `run&#8217;<br />
        from c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/lib/autotest.rb:105:in<br />
 `loop&#8217;<br />
        from c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/lib/autotest.rb:105:in<br />
 `run&#8217;<br />
        from c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/lib/autotest.rb:63:in<br />
`run&#8217;<br />
        from c:/ruby/lib/ruby/gems/1.8/gems/zentest-3.5.0/bin/autotest:36<br />
        from c:/ruby/bin/autotest:16:in `load&#8217;<br />
        from c:/ruby/bin/autotest:16</p>
<p>&#8211;If you can help in any way, i&#8217;d greatly appreciate it! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on First whine by JD</title>
		<link>http://devillecompanies.org/2004/08/13/first-whine/#comment-2</link>
		<dc:creator>JD</dc:creator>
		<pubDate>Fri, 13 Aug 2004 21:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://devillecompanies.org/?p=6#comment-2</guid>
		<description>Okay, after playing around and posting this, it finally works.  Go figure!</description>
		<content:encoded><![CDATA[<p>Okay, after playing around and posting this, it finally works.  Go figure!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
