aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorSean Bryant <sbryant@alexandergalloholdings.com>2009-04-22 11:07:41 -0400
committerSean Bryant <sbryant@alexandergalloholdings.com>2009-04-22 11:07:41 -0400
commit2d9c37d1695fd981344eef4837ff4962b35ee9ef (patch)
treeba01a014b84e41c3d6f1f402e0d5d6eed27d0194 /railties
parent4c21026da478afa763c6fadfb172938312311283 (diff)
downloadrails-2d9c37d1695fd981344eef4837ff4962b35ee9ef.tar.gz
rails-2d9c37d1695fd981344eef4837ff4962b35ee9ef.tar.bz2
rails-2d9c37d1695fd981344eef4837ff4962b35ee9ef.zip
Add a note about assert_valid(record) being deprecated.
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/testing.textile2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/source/testing.textile b/railties/guides/source/testing.textile
index 12fc836edf..301b79c533 100644
--- a/railties/guides/source/testing.textile
+++ b/railties/guides/source/testing.textile
@@ -413,6 +413,8 @@ 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.
+
|_.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.|
|+assert_difference(expressions, difference = 1, message = nil) {...}+ |Test numeric difference between the return value of an expression as a result of what is evaluated in the yielded block.|