Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a note about assert_valid(record) being deprecated.

  • Loading branch information...
commit 2d9c37d1695fd981344eef4837ff4962b35ee9ef 1 parent 4c21026
Sean Bryant authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  railties/guides/source/testing.textile
View
2  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.|
Please sign in to comment.
Something went wrong with that request. Please try again.