<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer">424</assigned-user-id>
  <attachments-count type="integer">0</attachments-count>
  <closed type="boolean">true</closed>
  <created-at type="datetime">2008-11-25T16:44:05+00:00</created-at>
  <creator-id type="integer">22427</creator-id>
  <milestone-due-on type="datetime">2009-01-31T00:00:00+00:00</milestone-due-on>
  <milestone-id type="integer" nil="true"></milestone-id>
  <number type="integer">1470</number>
  <permalink>assert_valid-undefined-in-edge-activesupporttestcase</permalink>
  <priority type="integer">78</priority>
  <project-id type="integer">8994</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>wontfix</state>
  <tag>autoload</tag>
  <title>assert_valid undefined in edge ActiveSupport::TestCase</title>
  <updated-at type="datetime">2008-11-25T21:36:09+00:00</updated-at>
  <user-id type="integer">424</user-id>
  <user-name>Joshua Peek</user-name>
  <creator-name>David Reese</creator-name>
  <assigned-user-name>Joshua Peek</assigned-user-name>
  <url>http://rails.lighthouseapp.com/projects/8994/tickets/1470</url>
  <original-body>Running unit tests on edge (2.3) I get `NoMethodError: undefined method `assert_valid' for #&lt;OrganizationTest:0x39f9018&gt;`

Not sure when that regressed exactly; I'm on cb4968171020bf3bb8f713cd69fe035ee5a3d608.</original-body>
  <latest-body>Running unit tests on edge (2.3) I get `NoMethodError: undefined method `assert_valid' for #&lt;OrganizationTest:0x39f9018&gt;`

Not sure when that regressed exactly; I'm on cb4968171020bf3bb8f713cd69fe035ee5a3d608.</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;Running unit tests on edge (2.3) I get &lt;code&gt;NoMethodError:
undefined method&lt;/code&gt;assert_valid' for #&lt;/p&gt;
&lt;p&gt;Not sure when that regressed exactly; I'm on
cb4968171020bf3bb8f713cd69fe035ee5a3d608.&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Running unit tests on edge (2.3) I get `NoMethodError: undefined method `assert_valid' for #&lt;OrganizationTest:0x39f9018&gt;`

Not sure when that regressed exactly; I'm on cb4968171020bf3bb8f713cd69fe035ee5a3d608.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Running unit tests on edge (2.3) I get &lt;code&gt;NoMethodError:
undefined method&lt;/code&gt;assert_valid' for
#&amp;lt;OrganizationTest:0x39f9018&amp;gt;&lt;/p&gt;
&lt;p&gt;Not sure when that regressed exactly; I'm on
cb4968171020bf3bb8f713cd69fe035ee5a3d608.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-11-25T16:44:05+00:00</created-at>
      <creator-id type="integer">22427</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">1470</number>
      <permalink>assert_valid-undefined-in-edge-activesupporttestcase</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>assert_valid undefined in edge ActiveSupport::TestCase</title>
      <updated-at type="datetime">2008-11-25T16:44:09+00:00</updated-at>
      <user-id type="integer">22427</user-id>
      <user-name>David Reese</user-name>
      <creator-name>David Reese</creator-name>
      <assigned-user-name nil="true"></assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/1470</url>
      <milestone-title>2.x</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">424</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Guessing an autoloading issue. Let me investigate.

What files are you requiring? test/unit, active_support/tase_case, etc?</body>
      <body-html>&lt;div&gt;&lt;p&gt;Guessing an autoloading issue. Let me investigate.&lt;/p&gt;
&lt;p&gt;What files are you requiring? test/unit,
active_support/tase_case, etc?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-11-25T18:07:40+00:00</created-at>
      <creator-id type="integer">22427</creator-id>
      <diffable-attributes type="yaml">--- 
:state: new
:tag: 
:milestone: 9903
:assigned_user: 
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">1470</number>
      <permalink>assert_valid-undefined-in-edge-activesupporttestcase</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>open</state>
      <tag>autoload</tag>
      <title>assert_valid undefined in edge ActiveSupport::TestCase</title>
      <updated-at type="datetime">2008-11-25T18:07:41+00:00</updated-at>
      <user-id type="integer">424</user-id>
      <user-name>Joshua Peek</user-name>
      <creator-name>David Reese</creator-name>
      <assigned-user-name>Joshua Peek</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/1470</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">424</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Apparently it was supposed to be deprecated a while ago :)

Sorry

http://github.com/rails/rails/commit/d4754677a34d34d4a0955a04f2cc6571bdc5e82d</body>
      <body-html>&lt;div&gt;&lt;p&gt;Apparently it was supposed to be deprecated a while ago :)&lt;/p&gt;
&lt;p&gt;Sorry&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://github.com/rails/rails/commit/d4754677a34d34d4a0955a04f2cc6571bdc5e82d&quot;&gt;
http://github.com/rails/rails/co...&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2008-11-25T18:36:17+00:00</created-at>
      <creator-id type="integer">22427</creator-id>
      <diffable-attributes type="yaml">--- 
:state: open
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">1470</number>
      <permalink>assert_valid-undefined-in-edge-activesupporttestcase</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>wontfix</state>
      <tag>autoload</tag>
      <title>assert_valid undefined in edge ActiveSupport::TestCase</title>
      <updated-at type="datetime">2008-11-25T18:36:20+00:00</updated-at>
      <user-id type="integer">424</user-id>
      <user-name>Joshua Peek</user-name>
      <creator-name>David Reese</creator-name>
      <assigned-user-name>Joshua Peek</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/1470</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">424</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Thanks... I initially suspected as much but didn't find it anywhere in changelogs or in git logs.

So i assumed some autoloading was going haywire. Sorry for the noise!</body>
      <body-html>&lt;div&gt;&lt;p&gt;Thanks... I initially suspected as much but didn't find it
anywhere in changelogs or in git logs.&lt;/p&gt;
&lt;p&gt;So i assumed some autoloading was going haywire. Sorry for the
noise!&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2008-11-25T19:29:29+00:00</created-at>
      <creator-id type="integer">22427</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">1470</number>
      <permalink>assert_valid-undefined-in-edge-activesupporttestcase</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>wontfix</state>
      <tag>autoload</tag>
      <title>assert_valid undefined in edge ActiveSupport::TestCase</title>
      <updated-at type="datetime">2008-11-25T19:29:34+00:00</updated-at>
      <user-id type="integer">22427</user-id>
      <user-name>David Reese</user-name>
      <creator-name>David Reese</creator-name>
      <assigned-user-name>Joshua Peek</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/1470</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">424</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>On second thought, Joshua -- I think there's still an issue with autoloading. (Seems strange that it would only affect this one assertion.)

The fix above is fine for functional tests, but in **unit tests**, assert_valid (still) gives a no method error, not the Deprecation message you'd hope for.

In 2.2, `assert_valid` works fine in unit tests, no errors or deprecation messages.

Since assert_valid is mentioned under 'unit tests' in awdwr2, I'm pretty sure I'm not the only one using it.</body>
      <body-html>&lt;div&gt;&lt;p&gt;On second thought, Joshua -- I think there's still an issue with
autoloading. (Seems strange that it would only affect this one
assertion.)&lt;/p&gt;
&lt;p&gt;The fix above is fine for functional tests, but in &lt;strong&gt;unit
tests&lt;/strong&gt;, assert_valid (still) gives a no method error, not
the Deprecation message you'd hope for.&lt;/p&gt;
&lt;p&gt;In 2.2, &lt;code&gt;assert_valid&lt;/code&gt; works fine in unit tests, no
errors or deprecation messages.&lt;/p&gt;
&lt;p&gt;Since assert_valid is mentioned under 'unit tests' in awdwr2,
I'm pretty sure I'm not the only one using it.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2008-11-25T20:46:00+00:00</created-at>
      <creator-id type="integer">22427</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">1470</number>
      <permalink>assert_valid-undefined-in-edge-activesupporttestcase</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>wontfix</state>
      <tag>autoload</tag>
      <title>assert_valid undefined in edge ActiveSupport::TestCase</title>
      <updated-at type="datetime">2008-11-25T20:46:05+00:00</updated-at>
      <user-id type="integer">22427</user-id>
      <user-name>David Reese</user-name>
      <creator-name>David Reese</creator-name>
      <assigned-user-name>Joshua Peek</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/1470</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">424</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>ModelAssertions used to be included directly into Test::Unit but now its only included in ActionController::TestCase.</body>
      <body-html>&lt;div&gt;&lt;p&gt;ModelAssertions used to be included directly into Test::Unit but
now its only included in ActionController::TestCase.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2008-11-25T21:36:06+00:00</created-at>
      <creator-id type="integer">22427</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">1470</number>
      <permalink>assert_valid-undefined-in-edge-activesupporttestcase</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>wontfix</state>
      <tag>autoload</tag>
      <title>assert_valid undefined in edge ActiveSupport::TestCase</title>
      <updated-at type="datetime">2008-11-25T21:36:09+00:00</updated-at>
      <user-id type="integer">424</user-id>
      <user-name>Joshua Peek</user-name>
      <creator-name>David Reese</creator-name>
      <assigned-user-name>Joshua Peek</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/1470</url>
      <milestone-title nil="true"></milestone-title>
    </version>
  </versions>
</ticket>
