<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Wood for the Trees: ActiveTest: TestHelper Bug Fix</title>
    <link>http://www.mathewabonyi.com/articles/2006/11/26/activetest-testhelper-bug-fix</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>struggling to dig life</description>
    <item>
      <title>ActiveTest: TestHelper Bug Fix</title>
      <description>&lt;p style="text-align:justify;"&gt;There was an issue with test_helper variables set on Test::Unit::TestCase not being set properly. Values would always be the default because of the way class inherited attributes are passed down the hierarchy. You now need to require the active_test framework and any other plugins you have installed at the end of &lt;span class="caps"&gt;RAILS&lt;/span&gt;_ROOT/test/test_helper.rb.&lt;/p&gt;


	&lt;p style="text-align:justify;"&gt;Also, plugin developers should never require their libraries through init. Instead, there should be a file with the name of their plugin in &lt;span class="caps"&gt;PLUGIN&lt;/span&gt;_ROOT/lib. For example, active_test_authentication has a file at &lt;span class="caps"&gt;PLUGIN&lt;/span&gt;_ROOT/lib/active_test_authentication.rb. This is the file which is loaded when `require &amp;#8216;active_test_authentication&amp;#8217;` is called at the end of test_helper.&lt;/p&gt;


	&lt;p style="text-align:justify;"&gt;This fix actually alleviates more than &lt;a href="http://code.google.com/p/mabs29/issues/detail?id=2"&gt;google issue 2&lt;/a&gt;. When loaded plugins with a name lexicographically earlier than active_test, active_test would automatically be loaded. This is trivial, but not intended. In any case, you must now require both the active_test framework and any plugins you use at the end of test_helper.&lt;/p&gt;</description>
      <pubDate>Sun, 26 Nov 2006 15:46:18 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:4c7331bf-0a4c-4d94-92cd-5ed2d36a2546</guid>
      <author>Mathew Abonyi</author>
      <link>http://www.mathewabonyi.com/articles/2006/11/26/activetest-testhelper-bug-fix</link>
      <category>Ruby</category>
      <category>Rails</category>
      <category>Plugins</category>
      <trackback:ping>http://www.mathewabonyi.com/articles/trackback/30</trackback:ping>
    </item>
  </channel>
</rss>
