diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-08 13:11:58 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-08 13:11:58 -0700 |
commit | 1c36172c13fc51b22167f5e8fc41b1da9f8fcb2a (patch) | |
tree | eff2254dd84c81dda6db52b30286a2b5ad2cb525 /railties/guides/source | |
parent | 0c407891fb209a4f94f09681db28e40a8b754198 (diff) | |
download | rails-1c36172c13fc51b22167f5e8fc41b1da9f8fcb2a.tar.gz rails-1c36172c13fc51b22167f5e8fc41b1da9f8fcb2a.tar.bz2 rails-1c36172c13fc51b22167f5e8fc41b1da9f8fcb2a.zip |
Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.
[#1617 state:resolved]
Diffstat (limited to 'railties/guides/source')
-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 9b764806a8..9897fbab6f 100644 --- a/railties/guides/source/testing.textile +++ b/railties/guides/source/testing.textile @@ -396,7 +396,7 @@ There are a bunch of different types of assertions you can use. Here's the compl |+assert_no_match( regexp, string, [msg] )+ |Ensures that a string doesn't matches the regular expression.| |+assert_in_delta( expecting, actual, delta, [msg] )+ |Ensures that the numbers +expecting+ and +actual+ are within +delta+ of each other.| |+assert_throws( symbol, [msg] ) { block }+ |Ensures that the given block throws the symbol.| -|+assert_raises( exception1, exception2, ... ) { block }+ |Ensures that the given block raises one of the given exceptions.| +|+assert_raise( exception1, exception2, ... ) { block }+ |Ensures that the given block raises one of the given exceptions.| |+assert_nothing_raised( exception1, exception2, ... ) { block }+ |Ensures that the given block doesn't raise one of the given exceptions.| |+assert_instance_of( class, obj, [msg] )+ |Ensures that +obj+ is of the +class+ type.| |+assert_kind_of( class, obj, [msg] )+ |Ensures that +obj+ is or descends from +class+.| |