Changeset 4907
- Timestamp:
- 09/02/06 20:41:40 (2 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/test/controller/routing_test.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r4898 r4907 1 1 *SVN* 2 3 * Add routing tests to assert that RoutingError is raised when conditions aren't met. Closes #6016 [Nathan Witmer] 2 4 3 5 * Deprecation: update docs. #5998 [jakob@mentalized.net, Kevin Clark] trunk/actionpack/test/controller/routing_test.rb
r4805 r4907 1382 1382 assert_nothing_raised { set.recognize(request) } 1383 1383 assert_equal("create", request.path_parameters[:action]) 1384 1385 request.method = :put 1386 assert_nothing_raised { set.recognize(request) } 1387 assert_equal("update", request.path_parameters[:action]) 1388 1389 request.method = :update 1390 assert_raises(ActionController::RoutingError) { set.recognize(request) } 1384 1391 1385 1392 request.path = "/people/5" … … 1398 1405 assert_equal("destroy", request.path_parameters[:action]) 1399 1406 assert_equal("5", request.path_parameters[:id]) 1407 1408 request.method = :post 1409 assert_raises(ActionController::RoutingError) { set.recognize(request) } 1410 1400 1411 ensure 1401 1412 Object.send(:remove_const, :PeopleController)