tag:blog.hasmanythrough.com,2006-02-27:/tag/textmatehas_many :through - textmate2007-09-10T21:46:00-07:00tag:blog.hasmanythrough.com,2006-02-27:Article/912007-09-10T21:46:00-07:002008-01-24T00:19:36-08:00it's easy being redgreenJosh Susser<p>I can't get by without <a href="http://errtheblog.com/post/15">redgreen</a> to colorize my test output. You can get it to work with all your Rails test tasks by requiring the redgreen gem in <code>test_helper.rb</code>. The problem is, it messes up your test output formatting when you run tests in TextMate using Command-R. The solution is trivial - check to see if any of the TextMate execution environment variables are present:</p>
<p>In <code>test_helper.rb</code>:</p>
<pre><code>require 'redgreen' unless ENV['TM_MODE']
</code></pre>
<p>Now back to your regularly scheduled internets...</p><p>I can't get by without <a href="http://errtheblog.com/post/15">redgreen</a> to colorize my test output. You can get it to work with all your Rails test tasks by requiring the redgreen gem in <code>test_helper.rb</code>. The problem is, it messes up your test output formatting when you run tests in TextMate using Command-R. The solution is trivial - check to see if any of the TextMate execution environment variables are present:</p>
<p>In <code>test_helper.rb</code>:</p>
<pre><code>require 'redgreen' unless ENV['TM_MODE']
</code></pre>
<p>Now back to your regularly scheduled internets...</p>