diff options
author | Sean Bryant <sbryant@alexandergalloholdings.com> | 2009-04-22 13:58:14 -0400 |
---|---|---|
committer | Sean Bryant <sbryant@alexandergalloholdings.com> | 2009-04-22 13:58:14 -0400 |
commit | e8071d7c644546c42184c33b210ba1d82c83a8d5 (patch) | |
tree | 57f2d6f893f98fd3e4eac5fc357f1c2171774a57 /railties | |
parent | 2d9c37d1695fd981344eef4837ff4962b35ee9ef (diff) | |
download | rails-e8071d7c644546c42184c33b210ba1d82c83a8d5.tar.gz rails-e8071d7c644546c42184c33b210ba1d82c83a8d5.tar.bz2 rails-e8071d7c644546c42184c33b210ba1d82c83a8d5.zip |
Fix my previous commit. Don't say it's been removed when it really
hasn't.
Also change the assert reference to be more consistent with the rest
of the documentation.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/testing.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/testing.textile b/railties/guides/source/testing.textile index 301b79c533..1776c77927 100644 --- a/railties/guides/source/testing.textile +++ b/railties/guides/source/testing.textile @@ -413,7 +413,7 @@ h4. Rails Specific Assertions Rails adds some custom assertions of its own to the +test/unit+ framework: -NOTE: +assert_valid(record)+ has been deprecated and is no longer available Rails 2.3. Please use +assert record.valid?+ instead. +NOTE: +assert_valid(record)+ has been deprecated. Please use +assert(record.valid?)+ instead. |_.Assertion |_.Purpose| |+assert_valid(record)+ |Ensures that the passed record is valid by Active Record standards and returns any error messages if it is not.| |