From 48fe62ee571002bdee694a5722285d4055a5e695 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Mon, 14 Feb 2011 00:09:05 +0000 Subject: Remove incorrect assert_recognizes example --- railties/guides/source/routing.textile | 6 ------ 1 file changed, 6 deletions(-) (limited to 'railties') diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile index 1d81c8f95b..28a207c436 100644 --- a/railties/guides/source/routing.textile +++ b/railties/guides/source/routing.textile @@ -852,12 +852,6 @@ You can supply a +:method+ argument to specify the HTTP verb: assert_recognizes({ :controller => "photos", :action => "create" }, { :path => "photos", :method => :post }) -You can also use the resourceful helpers to test recognition of a RESTful route: - - -assert_recognizes new_photo_url, { :path => "photos", :method => :post } - - h5. The +assert_routing+ Assertion The +assert_routing+ assertion checks the route both ways: it tests that the path generates the options, and that the options generate the path. Thus, it combines the functions of +assert_generates+ and +assert_recognizes+. -- cgit v1.2.3