cheat sheets.

$ cheat assert_raise
--- assert_raise version 1	Fri May 30 06:47:06 +0000 2008
+++ assert_raise version 2	Sat May 31 02:41:19 +0000 2008
@@ -1,12 +1,17 @@
 # 'cheat assertions' for the rest
 
 assert_raise(*args) {|| ...}
 
 Passes if the block raises one of the given exceptions.
 
-Example:
+Examples:
 
   assert_raise RuntimeError, LoadError do
     raise 'Boom!!!'
   end
+
+
+  assert_raise(ActionController::RoutingError) {
+    assert_routing 'invalid/url', { }
+  }
. o 0 (history | current )
( add new | see all )