<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Autotesting Javascript in Rails</title>
	<atom:link href="http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/</link>
	<description>Ruby makes Rails, Javascript makes Ajax, Dr Nic makes Magic</description>
	<lastBuildDate>Mon, 21 Nov 2011 19:26:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Effective Rails Testing, Part I: Ajax &#171; The Railsist</title>
		<link>http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/comment-page-1/#comment-188252</link>
		<dc:creator>Effective Rails Testing, Part I: Ajax &#171; The Railsist</dc:creator>
		<pubDate>Mon, 28 Sep 2009 23:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/#comment-188252</guid>
		<description>[...] Nic has a nice blog post on the subject which I&#8217;d strongly encourage you to check [...]</description>
		<content:encoded><![CDATA[<p>[...] Nic has a nice blog post on the subject which I&#8217;d strongly encourage you to check [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJ Holowaychuk</title>
		<link>http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/comment-page-1/#comment-162316</link>
		<dc:creator>TJ Holowaychuk</dc:creator>
		<pubDate>Tue, 17 Mar 2009 16:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/#comment-162316</guid>
		<description>Might want to checkout JSpec

http://visionmedia.github.com/jspec/</description>
		<content:encoded><![CDATA[<p>Might want to checkout JSpec</p>
<p><a href="http://visionmedia.github.com/jspec/" rel="nofollow">http://visionmedia.github.com/jspec/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/comment-page-1/#comment-123118</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Mon, 22 Sep 2008 22:42:46 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/#comment-123118</guid>
		<description>@Jeremy - check which version of newjs you&#039;re using (&lt;code&gt;gem list newjs&lt;/code&gt;) as I think the #! line is fixed in 1.4.1</description>
		<content:encoded><![CDATA[<p>@Jeremy &#8211; check which version of newjs you&#8217;re using (<code>gem list newjs</code>) as I think the #! line is fixed in 1.4.1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/comment-page-1/#comment-123011</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Mon, 22 Sep 2008 15:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/#comment-123011</guid>
		<description>Cheers for tutorial Dr Nic, V good for noob like myself.  
To make this work in Ubuntu i had to change line 1 of script/rstakeout to:
  #!/usr/bin/env ruby 

and to javascript_test_autotest.yml I added:
  firefox: &#039;/usr/lib/firefox-3.0.1/firefox.sh&#039;

which seems to work fine :-)</description>
		<content:encoded><![CDATA[<p>Cheers for tutorial Dr Nic, V good for noob like myself.<br />
To make this work in Ubuntu i had to change line 1 of script/rstakeout to:<br />
  #!/usr/bin/env ruby </p>
<p>and to javascript_test_autotest.yml I added:<br />
  firefox: &#8216;/usr/lib/firefox-3.0.1/firefox.sh&#8217;</p>
<p>which seems to work fine <img src='http://drnicwilliams.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed Spencer</title>
		<link>http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/comment-page-1/#comment-82655</link>
		<dc:creator>Ed Spencer</dc:creator>
		<pubDate>Fri, 18 Apr 2008 19:39:56 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/#comment-82655</guid>
		<description>Thanks for this, I&#039;ve got a Windows solution for you.

I had to take the contents of js_autotest and chuck it in with the javascript_test_autotest_tasks.rake, as well as change rake to rake.bat - like this:

# javascript_test_autotest_tasks.rake
namespace :test do
  namespace :recent do
    #untouched
  end

  task :javascript_autotest do
    system(&#039;ruby script/rstakeout &quot;rake.bat test:recent:javascript&quot; test/javascript/*_test.html test/javascript/samples/*/* public/javascripts/*.js&#039;)
  end
end

Then obviously rake test:javascript_autotest from windows command line and everything seems to work pretty well.  I&#039;ve only tested it with a few trivial examples but it detects the right changes and runs the right tests so it looks promising.

It&#039;s pretty trivial but I&#039;ll submit a patch after I get back from the pub.</description>
		<content:encoded><![CDATA[<p>Thanks for this, I&#8217;ve got a Windows solution for you.</p>
<p>I had to take the contents of js_autotest and chuck it in with the javascript_test_autotest_tasks.rake, as well as change rake to rake.bat &#8211; like this:</p>
<p># javascript_test_autotest_tasks.rake<br />
namespace :test do<br />
  namespace :recent do<br />
    #untouched<br />
  end</p>
<p>  task :javascript_autotest do<br />
    system(&#8216;ruby script/rstakeout &#8220;rake.bat test:recent:javascript&#8221; test/javascript/*_test.html test/javascript/samples/*/* public/javascripts/*.js&#8217;)<br />
  end<br />
end</p>
<p>Then obviously rake test:javascript_autotest from windows command line and everything seems to work pretty well.  I&#8217;ve only tested it with a few trivial examples but it detects the right changes and runs the right tests so it looks promising.</p>
<p>It&#8217;s pretty trivial but I&#8217;ll submit a patch after I get back from the pub.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Automating Javascript Unit Tests / Specs - Part 1 &#8212; blog.mattwynne.net</title>
		<link>http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/comment-page-1/#comment-79543</link>
		<dc:creator>Automating Javascript Unit Tests / Specs - Part 1 &#8212; blog.mattwynne.net</dc:creator>
		<pubDate>Sun, 06 Apr 2008 02:43:08 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/#comment-79543</guid>
		<description>[...] think my next step is to take another look at what Thomas Fuchs has been up to, and also this rails-based effort from Dr Nic. We&#8217;re using the prototype.js framework anyway, so this seem like it would be a [...]</description>
		<content:encoded><![CDATA[<p>[...] think my next step is to take another look at what Thomas Fuchs has been up to, and also this rails-based effort from Dr Nic. We&#8217;re using the prototype.js framework anyway, so this seem like it would be a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: massimiliano</title>
		<link>http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/comment-page-1/#comment-73132</link>
		<dc:creator>massimiliano</dc:creator>
		<pubDate>Sat, 26 Jan 2008 13:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/#comment-73132</guid>
		<description>Great work!!!

On Mac OS X Leopard I had to change the first line of file script/rstakeout to

#!/usr/bin/ruby -w</description>
		<content:encoded><![CDATA[<p>Great work!!!</p>
<p>On Mac OS X Leopard I had to change the first line of file script/rstakeout to</p>
<p>#!/usr/bin/ruby -w</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Recompilação dos últimos links interessantes</title>
		<link>http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/comment-page-1/#comment-72509</link>
		<dc:creator>Recompilação dos últimos links interessantes</dc:creator>
		<pubDate>Sat, 19 Jan 2008 14:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/#comment-72509</guid>
		<description>[...] tutoriais e artigos técnicos interessantes que chamaram nossa atenção foram aqueles chamados Autotestando JavaScript em Rails, de Dr. Nic, que explica como testar nossos scripts em JavaScript desde um script em Rails, [...]</description>
		<content:encoded><![CDATA[<p>[...] tutoriais e artigos técnicos interessantes que chamaram nossa atenção foram aqueles chamados Autotestando JavaScript em Rails, de Dr. Nic, que explica como testar nossos scripts em JavaScript desde um script em Rails, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/comment-page-1/#comment-71572</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 11 Jan 2008 19:01:06 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/#comment-71572</guid>
		<description>Windows Users have symbolic links!  It&#039;s just not well publicized:
http://shell-shocked.org/article.php?id=284
I use this program to easily create them:
http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html

Looking forward to the upcoming peepcode episode!</description>
		<content:encoded><![CDATA[<p>Windows Users have symbolic links!  It&#8217;s just not well publicized:<br />
<a href="http://shell-shocked.org/article.php?id=284" rel="nofollow">http://shell-shocked.org/article.php?id=284</a><br />
I use this program to easily create them:<br />
<a href="http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html" rel="nofollow">http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html</a></p>
<p>Looking forward to the upcoming peepcode episode!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/comment-page-1/#comment-71537</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Fri, 11 Jan 2008 10:14:30 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/#comment-71537</guid>
		<description>@Scott Becker [&lt;a href=&#039;http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/#comment-70670&#039; rel=&quot;nofollow&quot;&gt;via&lt;/a&gt;] - sorry Scott :) The patches have all been applied now so future readers can live in a happy place that you were denied :)</description>
		<content:encoded><![CDATA[<p>@Scott Becker [<a href='http://drnicwilliams.com/2008/01/04/autotesting-javascript-in-rails/#comment-70670' rel="nofollow">via</a>] &#8211; sorry Scott <img src='http://drnicwilliams.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The patches have all been applied now so future readers can live in a happy place that you were denied <img src='http://drnicwilliams.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

