Permalink
Browse files

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.
  • Loading branch information...
Sean Bryant
Sean Bryant committed Apr 22, 2009
1 parent 2d9c37d commit e8071d7c644546c42184c33b210ba1d82c83a8d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.|

0 comments on commit e8071d7

Please sign in to comment.