This project is archived and is in readonly mode.
assert_valid undefined in edge ActiveSupport::TestCase
-
josh
- Tag set to autoload
- Milestone cleared.
- State changed from new to open
- Assigned user set to josh
Guessing an autoloading issue. Let me investigate.
What files are you requiring? test/unit, active_support/tase_case, etc?
-
josh
- State changed from open to wontfix
Apparently it was supposed to be deprecated a while ago :)
Sorry
-
David Reese
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!
-
David Reese
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_validworks 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.
-
josh
ModelAssertions used to be included directly into Test::Unit but now its only included in ActionController::TestCase.