2010-02-08 17:53:52 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								# redMine - project management software  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# Copyright (C) 2006-2010  Jean-Philippe Lang  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# This program is free software; you can redistribute it and/or  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# modify it under the terms of the GNU General Public License  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# as published by the Free Software Foundation; either version 2  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# of the License, or (at your option) any later version.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#   
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# This program is distributed in the hope that it will be useful,  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# but WITHOUT ANY WARRANTY; without even the implied warranty of  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# GNU General Public License for more details.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#   
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# You should have received a copy of the GNU General Public License  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# along with this program; if not, write to the Free Software  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-03-28 15:18:09 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								require  " #{ File . dirname ( __FILE__ ) } /../test_helper "  
						 
					
						
							
								
									
										
										
										
											2010-02-08 17:53:52 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								class  RoutingTest  <  ActionController :: IntegrationTest  
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  context  " activities "  do 
							 
						 
					
						
							
								
									
										
										
										
											2010-08-27 14:05:54 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /activity " ,  :controller  = >  'activities' ,  :action  = >  'index' ,  :id  = >  nil 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /activity.atom " ,  :controller  = >  'activities' ,  :action  = >  'index' ,  :id  = >  nil ,  :format  = >  'atom' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  context  " attachments "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /attachments/1 " ,  :controller  = >  'attachments' ,  :action  = >  'show' ,  :id  = >  '1' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /attachments/1/filename.ext " ,  :controller  = >  'attachments' ,  :action  = >  'show' ,  :id  = >  '1' ,  :filename  = >  'filename.ext' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /attachments/download/1 " ,  :controller  = >  'attachments' ,  :action  = >  'download' ,  :id  = >  '1' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /attachments/download/1/filename.ext " ,  :controller  = >  'attachments' ,  :action  = >  'download' ,  :id  = >  '1' ,  :filename  = >  'filename.ext' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  context  " boards "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/world_domination/boards " ,  :controller  = >  'boards' ,  :action  = >  'index' ,  :project_id  = >  'world_domination' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/world_domination/boards/new " ,  :controller  = >  'boards' ,  :action  = >  'new' ,  :project_id  = >  'world_domination' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/world_domination/boards/44 " ,  :controller  = >  'boards' ,  :action  = >  'show' ,  :project_id  = >  'world_domination' ,  :id  = >  '44' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/world_domination/boards/44.atom " ,  :controller  = >  'boards' ,  :action  = >  'show' ,  :project_id  = >  'world_domination' ,  :id  = >  '44' ,  :format  = >  'atom' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/world_domination/boards/44/edit " ,  :controller  = >  'boards' ,  :action  = >  'edit' ,  :project_id  = >  'world_domination' ,  :id  = >  '44' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/world_domination/boards/new " ,  :controller  = >  'boards' ,  :action  = >  'new' ,  :project_id  = >  'world_domination' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/world_domination/boards/44/edit " ,  :controller  = >  'boards' ,  :action  = >  'edit' ,  :project_id  = >  'world_domination' ,  :id  = >  '44' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/world_domination/boards/44/destroy " ,  :controller  = >  'boards' ,  :action  = >  'destroy' ,  :project_id  = >  'world_domination' ,  :id  = >  '44' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  context  " documents "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/documents " ,  :controller  = >  'documents' ,  :action  = >  'index' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/documents/new " ,  :controller  = >  'documents' ,  :action  = >  'new' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /documents/22 " ,  :controller  = >  'documents' ,  :action  = >  'show' ,  :id  = >  '22' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /documents/22/edit " ,  :controller  = >  'documents' ,  :action  = >  'edit' ,  :id  = >  '22' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/567/documents/new " ,  :controller  = >  'documents' ,  :action  = >  'new' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /documents/567/edit " ,  :controller  = >  'documents' ,  :action  = >  'edit' ,  :id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /documents/567/destroy " ,  :controller  = >  'documents' ,  :action  = >  'destroy' ,  :id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  
							 
						 
					
						
							
								
									
										
										
										
											2010-02-22 18:15:07 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  context  " issues "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    # REST actions 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues " ,  :controller  = >  'issues' ,  :action  = >  'index' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues.pdf " ,  :controller  = >  'issues' ,  :action  = >  'index' ,  :format  = >  'pdf' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues.atom " ,  :controller  = >  'issues' ,  :action  = >  'index' ,  :format  = >  'atom' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues.xml " ,  :controller  = >  'issues' ,  :action  = >  'index' ,  :format  = >  'xml' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/23/issues " ,  :controller  = >  'issues' ,  :action  = >  'index' ,  :project_id  = >  '23' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/23/issues.pdf " ,  :controller  = >  'issues' ,  :action  = >  'index' ,  :project_id  = >  '23' ,  :format  = >  'pdf' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/23/issues.atom " ,  :controller  = >  'issues' ,  :action  = >  'index' ,  :project_id  = >  '23' ,  :format  = >  'atom' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/23/issues.xml " ,  :controller  = >  'issues' ,  :action  = >  'index' ,  :project_id  = >  '23' ,  :format  = >  'xml' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/64 " ,  :controller  = >  'issues' ,  :action  = >  'show' ,  :id  = >  '64' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/64.pdf " ,  :controller  = >  'issues' ,  :action  = >  'show' ,  :id  = >  '64' ,  :format  = >  'pdf' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/64.atom " ,  :controller  = >  'issues' ,  :action  = >  'show' ,  :id  = >  '64' ,  :format  = >  'atom' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/64.xml " ,  :controller  = >  'issues' ,  :action  = >  'show' ,  :id  = >  '64' ,  :format  = >  'xml' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/23/issues/new " ,  :controller  = >  'issues' ,  :action  = >  'new' ,  :project_id  = >  '23' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-22 15:43:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/23/issues " ,  :controller  = >  'issues' ,  :action  = >  'create' ,  :project_id  = >  '23' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /issues.xml " ,  :controller  = >  'issues' ,  :action  = >  'create' ,  :format  = >  'xml' 
							 
						 
					
						
							
								
									
										
										
										
											2010-02-22 18:15:07 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/64/edit " ,  :controller  = >  'issues' ,  :action  = >  'edit' ,  :id  = >  '64' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    # TODO: Should use PUT 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /issues/64/edit " ,  :controller  = >  'issues' ,  :action  = >  'edit' ,  :id  = >  '64' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :put ,  " /issues/1.xml " ,  :controller  = >  'issues' ,  :action  = >  'update' ,  :id  = >  '1' ,  :format  = >  'xml' 
							 
						 
					
						
							
								
									
										
										
										
											2010-02-22 18:15:07 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    # TODO: Should use DELETE 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /issues/64/destroy " ,  :controller  = >  'issues' ,  :action  = >  'destroy' ,  :id  = >  '64' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :delete ,  " /issues/1.xml " ,  :controller  = >  'issues' ,  :action  = >  'destroy' ,  :id  = >  '1' ,  :format  = >  'xml' 
							 
						 
					
						
							
								
									
										
										
										
											2010-02-22 18:15:07 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    # Extra actions 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/23/issues/64/copy " ,  :controller  = >  'issues' ,  :action  = >  'new' ,  :project_id  = >  '23' ,  :copy_from  = >  '64' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-08-11 14:42:10 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/move/new " ,  :controller  = >  'issue_moves' ,  :action  = >  'new' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /issues/move " ,  :controller  = >  'issue_moves' ,  :action  = >  'create' 
							 
						 
					
						
							
								
									
										
										
										
											2010-02-22 18:15:07 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    
							 
						 
					
						
							
								
									
										
										
										
											2010-08-16 16:25:04 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /issues/1/quoted " ,  :controller  = >  'journals' ,  :action  = >  'new' ,  :id  = >  '1' 
							 
						 
					
						
							
								
									
										
										
										
											2010-02-22 18:15:07 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-05-03 16:02:37 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/calendar " ,  :controller  = >  'calendars' ,  :action  = >  'show' 
							 
						 
					
						
							
								
									
										
										
										
											2010-08-26 16:36:59 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :put ,  " /issues/calendar " ,  :controller  = >  'calendars' ,  :action  = >  'update' 
							 
						 
					
						
							
								
									
										
										
										
											2010-05-03 16:02:37 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/project-name/issues/calendar " ,  :controller  = >  'calendars' ,  :action  = >  'show' ,  :project_id  = >  'project-name' 
							 
						 
					
						
							
								
									
										
										
										
											2010-08-26 16:36:59 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :put ,  " /projects/project-name/issues/calendar " ,  :controller  = >  'calendars' ,  :action  = >  'update' ,  :project_id  = >  'project-name' 
							 
						 
					
						
							
								
									
										
										
										
											2010-02-22 18:15:07 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-04-28 15:54:46 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/gantt " ,  :controller  = >  'gantts' ,  :action  = >  'show' 
							 
						 
					
						
							
								
									
										
										
										
											2010-08-26 16:36:59 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :put ,  " /issues/gantt " ,  :controller  = >  'gantts' ,  :action  = >  'update' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-28 15:54:46 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/project-name/issues/gantt " ,  :controller  = >  'gantts' ,  :action  = >  'show' ,  :project_id  = >  'project-name' 
							 
						 
					
						
							
								
									
										
										
										
											2010-08-26 16:36:59 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :put ,  " /projects/project-name/issues/gantt " ,  :controller  = >  'gantts' ,  :action  = >  'update' ,  :project_id  = >  'project-name' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-20 15:42:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-08-17 15:03:58 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/auto_complete " ,  :controller  = >  'auto_completes' ,  :action  = >  'issues' 
							 
						 
					
						
							
								
									
										
										
										
											2010-08-18 15:01:35 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/preview/123 " ,  :controller  = >  'previews' ,  :action  = >  'issue' ,  :id  = >  '123' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /issues/preview/123 " ,  :controller  = >  'previews' ,  :action  = >  'issue' ,  :id  = >  '123' 
							 
						 
					
						
							
								
									
										
										
										
											2010-08-19 18:16:54 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/context_menu " ,  :controller  = >  'context_menus' ,  :action  = >  'issues' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /issues/context_menu " ,  :controller  = >  'context_menus' ,  :action  = >  'issues' 
							 
						 
					
						
							
								
									
										
										
										
											2010-08-23 15:04:36 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/changes " ,  :controller  = >  'journals' ,  :action  = >  'index' 
							 
						 
					
						
							
								
									
										
										
										
											2010-08-24 15:27:12 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/bulk_edit " ,  :controller  = >  'issues' ,  :action  = >  'bulk_edit' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /issues/bulk_edit " ,  :controller  = >  'issues' ,  :action  = >  'bulk_update' 
							 
						 
					
						
							
								
									
										
										
										
											2010-02-22 18:15:07 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  context  " issue categories "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/test/issue_categories/new " ,  :controller  = >  'issue_categories' ,  :action  = >  'new' ,  :project_id  = >  'test' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/test/issue_categories/new " ,  :controller  = >  'issue_categories' ,  :action  = >  'new' ,  :project_id  = >  'test' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  context  " issue relations "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /issues/1/relations " ,  :controller  = >  'issue_relations' ,  :action  = >  'new' ,  :issue_id  = >  '1' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /issues/1/relations/23/destroy " ,  :controller  = >  'issue_relations' ,  :action  = >  'destroy' ,  :issue_id  = >  '1' ,  :id  = >  '23' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
									
										
										
										
											2010-02-22 18:15:07 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  
							 
						 
					
						
							
								
									
										
										
										
											2010-02-08 17:53:52 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								  context  " issue reports "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/issues/report " ,  :controller  = >  'reports' ,  :action  = >  'issue_report' ,  :id  = >  '567' 
							 
						 
					
						
							
								
									
										
										
										
											2010-02-08 17:53:58 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/issues/report/assigned_to " ,  :controller  = >  'reports' ,  :action  = >  'issue_report_details' ,  :id  = >  '567' ,  :detail  = >  'assigned_to' 
							 
						 
					
						
							
								
									
										
										
										
											2010-02-08 17:53:52 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-20 15:42:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  context  " members "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/5234/members/new " ,  :controller  = >  'members' ,  :action  = >  'new' ,  :id  = >  '5234' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  context  " messages "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /boards/22/topics/2 " ,  :controller  = >  'messages' ,  :action  = >  'show' ,  :id  = >  '2' ,  :board_id  = >  '22' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /boards/lala/topics/new " ,  :controller  = >  'messages' ,  :action  = >  'new' ,  :board_id  = >  'lala' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /boards/lala/topics/22/edit " ,  :controller  = >  'messages' ,  :action  = >  'edit' ,  :id  = >  '22' ,  :board_id  = >  'lala' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /boards/lala/topics/new " ,  :controller  = >  'messages' ,  :action  = >  'new' ,  :board_id  = >  'lala' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /boards/lala/topics/22/edit " ,  :controller  = >  'messages' ,  :action  = >  'edit' ,  :id  = >  '22' ,  :board_id  = >  'lala' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /boards/22/topics/555/replies " ,  :controller  = >  'messages' ,  :action  = >  'reply' ,  :id  = >  '555' ,  :board_id  = >  '22' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /boards/22/topics/555/destroy " ,  :controller  = >  'messages' ,  :action  = >  'destroy' ,  :id  = >  '555' ,  :board_id  = >  '22' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  context  " news "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /news " ,  :controller  = >  'news' ,  :action  = >  'index' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /news.atom " ,  :controller  = >  'news' ,  :action  = >  'index' ,  :format  = >  'atom' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /news.xml " ,  :controller  = >  'news' ,  :action  = >  'index' ,  :format  = >  'xml' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /news.json " ,  :controller  = >  'news' ,  :action  = >  'index' ,  :format  = >  'json' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/news " ,  :controller  = >  'news' ,  :action  = >  'index' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/news.atom " ,  :controller  = >  'news' ,  :action  = >  'index' ,  :format  = >  'atom' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/news.xml " ,  :controller  = >  'news' ,  :action  = >  'index' ,  :format  = >  'xml' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/news.json " ,  :controller  = >  'news' ,  :action  = >  'index' ,  :format  = >  'json' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /news/2 " ,  :controller  = >  'news' ,  :action  = >  'show' ,  :id  = >  '2' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/news/new " ,  :controller  = >  'news' ,  :action  = >  'new' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /news/234 " ,  :controller  = >  'news' ,  :action  = >  'show' ,  :id  = >  '234' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-21 15:20:37 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /news/567/edit " ,  :controller  = >  'news' ,  :action  = >  'edit' ,  :id  = >  '567' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-24 16:26:46 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /news/preview " ,  :controller  = >  'previews' ,  :action  = >  'news' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    
							 
						 
					
						
							
								
									
										
										
										
											2010-09-20 15:13:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/567/news " ,  :controller  = >  'news' ,  :action  = >  'create' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-22 16:25:09 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /news/567/comments " ,  :controller  = >  'comments' ,  :action  = >  'create' ,  :id  = >  '567' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-24 16:26:46 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-09-27 16:51:12 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :put ,  " /news/567 " ,  :controller  = >  'news' ,  :action  = >  'update' ,  :id  = >  '567' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-23 15:20:19 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-09-27 16:51:12 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :delete ,  " /news/567 " ,  :controller  = >  'news' ,  :action  = >  'destroy' ,  :id  = >  '567' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-23 15:20:19 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :delete ,  " /news/567/comments/15 " ,  :controller  = >  'comments' ,  :action  = >  'destroy' ,  :id  = >  '567' ,  :comment_id  = >  '15' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  context  " projects "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects " ,  :controller  = >  'projects' ,  :action  = >  'index' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects.atom " ,  :controller  = >  'projects' ,  :action  = >  'index' ,  :format  = >  'atom' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects.xml " ,  :controller  = >  'projects' ,  :action  = >  'index' ,  :format  = >  'xml' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-07 15:00:27 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/new " ,  :controller  = >  'projects' ,  :action  = >  'new' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/test " ,  :controller  = >  'projects' ,  :action  = >  'show' ,  :id  = >  'test' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/1.xml " ,  :controller  = >  'projects' ,  :action  = >  'show' ,  :id  = >  '1' ,  :format  = >  'xml' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/4223/settings " ,  :controller  = >  'projects' ,  :action  = >  'settings' ,  :id  = >  '4223' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/4223/settings/members " ,  :controller  = >  'projects' ,  :action  = >  'settings' ,  :id  = >  '4223' ,  :tab  = >  'members' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-14 16:24:07 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/33/files " ,  :controller  = >  'files' ,  :action  = >  'index' ,  :project_id  = >  '33' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/33/files/new " ,  :controller  = >  'files' ,  :action  = >  'new' ,  :project_id  = >  '33' 
							 
						 
					
						
							
								
									
										
										
										
											2010-08-30 15:30:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/33/roadmap " ,  :controller  = >  'versions' ,  :action  = >  'index' ,  :project_id  = >  '33' 
							 
						 
					
						
							
								
									
										
										
										
											2010-08-27 14:05:54 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/33/activity " ,  :controller  = >  'activities' ,  :action  = >  'index' ,  :id  = >  '33' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/33/activity.atom " ,  :controller  = >  'activities' ,  :action  = >  'index' ,  :id  = >  '33' ,  :format  = >  'atom' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    
							 
						 
					
						
							
								
									
										
										
										
											2010-09-09 18:57:21 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects " ,  :controller  = >  'projects' ,  :action  = >  'create' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-06 14:53:08 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects.xml " ,  :controller  = >  'projects' ,  :action  = >  'create' ,  :format  = >  'xml' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-14 16:24:07 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/33/files " ,  :controller  = >  'files' ,  :action  = >  'create' ,  :project_id  = >  '33' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/64/archive " ,  :controller  = >  'projects' ,  :action  = >  'archive' ,  :id  = >  '64' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/64/unarchive " ,  :controller  = >  'projects' ,  :action  = >  'unarchive' ,  :id  = >  '64' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-09-10 16:00:49 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :put ,  " /projects/64/enumerations " ,  :controller  = >  'project_enumerations' ,  :action  = >  'update' ,  :project_id  = >  '64' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-09 18:57:21 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :put ,  " /projects/4223 " ,  :controller  = >  'projects' ,  :action  = >  'update' ,  :id  = >  '4223' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-08 16:01:51 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :put ,  " /projects/1.xml " ,  :controller  = >  'projects' ,  :action  = >  'update' ,  :id  = >  '1' ,  :format  = >  'xml' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-09-09 18:57:21 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :delete ,  " /projects/64 " ,  :controller  = >  'projects' ,  :action  = >  'destroy' ,  :id  = >  '64' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :delete ,  " /projects/1.xml " ,  :controller  = >  'projects' ,  :action  = >  'destroy' ,  :id  = >  '1' ,  :format  = >  'xml' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-10 16:00:49 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :delete ,  " /projects/64/enumerations " ,  :controller  = >  'project_enumerations' ,  :action  = >  'destroy' ,  :project_id  = >  '64' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  context  " repositories "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository " ,  :controller  = >  'repositories' ,  :action  = >  'show' ,  :id  = >  'redmine' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/edit " ,  :controller  = >  'repositories' ,  :action  = >  'edit' ,  :id  = >  'redmine' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/revisions " ,  :controller  = >  'repositories' ,  :action  = >  'revisions' ,  :id  = >  'redmine' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/revisions.atom " ,  :controller  = >  'repositories' ,  :action  = >  'revisions' ,  :id  = >  'redmine' ,  :format  = >  'atom' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/revisions/2457 " ,  :controller  = >  'repositories' ,  :action  = >  'revision' ,  :id  = >  'redmine' ,  :rev  = >  '2457' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/revisions/2457/diff " ,  :controller  = >  'repositories' ,  :action  = >  'diff' ,  :id  = >  'redmine' ,  :rev  = >  '2457' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/revisions/2457/diff.diff " ,  :controller  = >  'repositories' ,  :action  = >  'diff' ,  :id  = >  'redmine' ,  :rev  = >  '2457' ,  :format  = >  'diff' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/diff/path/to/file.c " ,  :controller  = >  'repositories' ,  :action  = >  'diff' ,  :id  = >  'redmine' ,  :path  = >  %w[ path to file.c ] 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/revisions/2/diff/path/to/file.c " ,  :controller  = >  'repositories' ,  :action  = >  'diff' ,  :id  = >  'redmine' ,  :path  = >  %w[ path to file.c ] ,  :rev  = >  '2' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/browse/path/to/file.c " ,  :controller  = >  'repositories' ,  :action  = >  'browse' ,  :id  = >  'redmine' ,  :path  = >  %w[ path to file.c ] 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/entry/path/to/file.c " ,  :controller  = >  'repositories' ,  :action  = >  'entry' ,  :id  = >  'redmine' ,  :path  = >  %w[ path to file.c ] 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/revisions/2/entry/path/to/file.c " ,  :controller  = >  'repositories' ,  :action  = >  'entry' ,  :id  = >  'redmine' ,  :path  = >  %w[ path to file.c ] ,  :rev  = >  '2' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/raw/path/to/file.c " ,  :controller  = >  'repositories' ,  :action  = >  'entry' ,  :id  = >  'redmine' ,  :path  = >  %w[ path to file.c ] ,  :format  = >  'raw' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/revisions/2/raw/path/to/file.c " ,  :controller  = >  'repositories' ,  :action  = >  'entry' ,  :id  = >  'redmine' ,  :path  = >  %w[ path to file.c ] ,  :rev  = >  '2' ,  :format  = >  'raw' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/annotate/path/to/file.c " ,  :controller  = >  'repositories' ,  :action  = >  'annotate' ,  :id  = >  'redmine' ,  :path  = >  %w[ path to file.c ] 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/changes/path/to/file.c " ,  :controller  = >  'repositories' ,  :action  = >  'changes' ,  :id  = >  'redmine' ,  :path  = >  %w[ path to file.c ] 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/redmine/repository/statistics " ,  :controller  = >  'repositories' ,  :action  = >  'stats' ,  :id  = >  'redmine' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/redmine/repository/edit " ,  :controller  = >  'repositories' ,  :action  = >  'edit' ,  :id  = >  'redmine' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-10-12 15:55:21 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  context  " timelogs (global) "  do 
							 
						 
					
						
							
								
									
										
										
										
											2010-10-06 18:23:45 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /time_entries " ,  :controller  = >  'timelog' ,  :action  = >  'index' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /time_entries.csv " ,  :controller  = >  'timelog' ,  :action  = >  'index' ,  :format  = >  'csv' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /time_entries.atom " ,  :controller  = >  'timelog' ,  :action  = >  'index' ,  :format  = >  'atom' 
							 
						 
					
						
							
								
									
										
										
										
											2010-10-12 15:55:21 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /time_entries/new " ,  :controller  = >  'timelog' ,  :action  = >  'new' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /time_entries/22/edit " ,  :controller  = >  'timelog' ,  :action  = >  'edit' ,  :id  = >  '22' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /time_entries " ,  :controller  = >  'timelog' ,  :action  = >  'create' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :put ,  " /time_entries/22 " ,  :controller  = >  'timelog' ,  :action  = >  'update' ,  :id  = >  '22' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :delete ,  " /time_entries/55 " ,  :controller  = >  'timelog' ,  :action  = >  'destroy' ,  :id  = >  '55' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  context  " timelogs (scoped under project) "  do 
							 
						 
					
						
							
								
									
										
										
										
											2010-10-06 18:23:45 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/time_entries " ,  :controller  = >  'timelog' ,  :action  = >  'index' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/time_entries.csv " ,  :controller  = >  'timelog' ,  :action  = >  'index' ,  :project_id  = >  '567' ,  :format  = >  'csv' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/time_entries.atom " ,  :controller  = >  'timelog' ,  :action  = >  'index' ,  :project_id  = >  '567' ,  :format  = >  'atom' 
							 
						 
					
						
							
								
									
										
										
										
											2010-10-12 15:55:21 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/time_entries/new " ,  :controller  = >  'timelog' ,  :action  = >  'new' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/time_entries/22/edit " ,  :controller  = >  'timelog' ,  :action  = >  'edit' ,  :id  = >  '22' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/567/time_entries " ,  :controller  = >  'timelog' ,  :action  = >  'create' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :put ,  " /projects/567/time_entries/22 " ,  :controller  = >  'timelog' ,  :action  = >  'update' ,  :id  = >  '22' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :delete ,  " /projects/567/time_entries/55 " ,  :controller  = >  'timelog' ,  :action  = >  'destroy' ,  :id  = >  '55' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  context  " timelogs (scoped under issues) "  do 
							 
						 
					
						
							
								
									
										
										
										
											2010-10-06 18:23:45 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/234/time_entries " ,  :controller  = >  'timelog' ,  :action  = >  'index' ,  :issue_id  = >  '234' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/234/time_entries.csv " ,  :controller  = >  'timelog' ,  :action  = >  'index' ,  :issue_id  = >  '234' ,  :format  = >  'csv' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/234/time_entries.atom " ,  :controller  = >  'timelog' ,  :action  = >  'index' ,  :issue_id  = >  '234' ,  :format  = >  'atom' 
							 
						 
					
						
							
								
									
										
										
										
											2010-10-12 15:55:21 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/234/time_entries/new " ,  :controller  = >  'timelog' ,  :action  = >  'new' ,  :issue_id  = >  '234' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /issues/234/time_entries/22/edit " ,  :controller  = >  'timelog' ,  :action  = >  'edit' ,  :id  = >  '22' ,  :issue_id  = >  '234' 
							 
						 
					
						
							
								
									
										
										
										
											2010-10-06 18:23:45 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-10-12 15:55:21 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /issues/234/time_entries " ,  :controller  = >  'timelog' ,  :action  = >  'create' ,  :issue_id  = >  '234' 
							 
						 
					
						
							
								
									
										
										
										
											2010-10-05 16:07:17 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-10-12 15:55:21 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :put ,  " /issues/234/time_entries/22 " ,  :controller  = >  'timelog' ,  :action  = >  'update' ,  :id  = >  '22' ,  :issue_id  = >  '234' 
							 
						 
					
						
							
								
									
										
										
										
											2010-10-11 15:31:42 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-10-12 15:55:21 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :delete ,  " /issues/234/time_entries/55 " ,  :controller  = >  'timelog' ,  :action  = >  'destroy' ,  :id  = >  '55' ,  :issue_id  = >  '234' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  context  " timelogs (scoped under project and issues) "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/ecookbook/issues/234/time_entries " ,  :controller  = >  'timelog' ,  :action  = >  'index' ,  :issue_id  = >  '234' ,  :project_id  = >  'ecookbook' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/ecookbook/issues/234/time_entries.csv " ,  :controller  = >  'timelog' ,  :action  = >  'index' ,  :issue_id  = >  '234' ,  :project_id  = >  'ecookbook' ,  :format  = >  'csv' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/ecookbook/issues/234/time_entries.atom " ,  :controller  = >  'timelog' ,  :action  = >  'index' ,  :issue_id  = >  '234' ,  :project_id  = >  'ecookbook' ,  :format  = >  'atom' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/ecookbook/issues/234/time_entries/new " ,  :controller  = >  'timelog' ,  :action  = >  'new' ,  :issue_id  = >  '234' ,  :project_id  = >  'ecookbook' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/ecookbook/issues/234/time_entries/22/edit " ,  :controller  = >  'timelog' ,  :action  = >  'edit' ,  :id  = >  '22' ,  :issue_id  = >  '234' ,  :project_id  = >  'ecookbook' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/ecookbook/issues/234/time_entries " ,  :controller  = >  'timelog' ,  :action  = >  'create' ,  :issue_id  = >  '234' ,  :project_id  = >  'ecookbook' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :put ,  " /projects/ecookbook/issues/234/time_entries/22 " ,  :controller  = >  'timelog' ,  :action  = >  'update' ,  :id  = >  '22' ,  :issue_id  = >  '234' ,  :project_id  = >  'ecookbook' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :delete ,  " /projects/ecookbook/issues/234/time_entries/55 " ,  :controller  = >  'timelog' ,  :action  = >  'destroy' ,  :id  = >  '55' ,  :issue_id  = >  '234' ,  :project_id  = >  'ecookbook' 
							 
						 
					
						
							
								
									
										
										
										
											2010-10-05 16:07:17 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  context  " time_entry_reports "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /time_entries/report " ,  :controller  = >  'time_entry_reports' ,  :action  = >  'report' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/time_entries/report " ,  :controller  = >  'time_entry_reports' ,  :action  = >  'report' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/time_entries/report.csv " ,  :controller  = >  'time_entry_reports' ,  :action  = >  'report' ,  :project_id  = >  '567' ,  :format  = >  'csv' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-04-20 15:42:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  context  " users "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /users " ,  :controller  = >  'users' ,  :action  = >  'index' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /users/44 " ,  :controller  = >  'users' ,  :action  = >  'show' ,  :id  = >  '44' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-29 16:00:45 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /users/new " ,  :controller  = >  'users' ,  :action  = >  'new' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-20 15:42:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /users/444/edit " ,  :controller  = >  'users' ,  :action  = >  'edit' ,  :id  = >  '444' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /users/222/edit/membership " ,  :controller  = >  'users' ,  :action  = >  'edit' ,  :id  = >  '222' ,  :tab  = >  'membership' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-10-04 15:36:16 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /users " ,  :controller  = >  'users' ,  :action  = >  'create' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-20 15:42:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /users/123/memberships " ,  :controller  = >  'users' ,  :action  = >  'edit_membership' ,  :id  = >  '123' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /users/123/memberships/55 " ,  :controller  = >  'users' ,  :action  = >  'edit_membership' ,  :id  = >  '123' ,  :membership_id  = >  '55' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /users/567/memberships/12/destroy " ,  :controller  = >  'users' ,  :action  = >  'destroy_membership' ,  :id  = >  '567' ,  :membership_id  = >  '12' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-30 18:22:46 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-10-04 15:36:16 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :put ,  " /users/444 " ,  :controller  = >  'users' ,  :action  = >  'update' ,  :id  = >  '444' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-20 15:42:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-09-15 16:50:25 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  # TODO: should they all be scoped under /projects/:project_id ? 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-20 15:42:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  context  " versions "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/foo/versions/new " ,  :controller  = >  'versions' ,  :action  = >  'new' ,  :project_id  = >  'foo' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-15 16:50:25 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /versions/show/1 " ,  :controller  = >  'versions' ,  :action  = >  'show' ,  :id  = >  '1' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /versions/edit/1 " ,  :controller  = >  'versions' ,  :action  = >  'edit' ,  :id  = >  '1' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-20 15:42:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-09-16 18:27:33 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/foo/versions " ,  :controller  = >  'versions' ,  :action  = >  'create' ,  :project_id  = >  'foo' 
							 
						 
					
						
							
								
									
										
										
										
											2010-09-15 16:50:25 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /versions/update/1 " ,  :controller  = >  'versions' ,  :action  = >  'update' ,  :id  = >  '1' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :delete ,  " /versions/destroy/1 " ,  :controller  = >  'versions' ,  :action  = >  'destroy' ,  :id  = >  '1' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-20 15:42:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  context  " wiki (singular, project's pages) "  do 
							 
						 
					
						
							
								
									
										
										
										
											2010-10-21 16:07:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/wiki " ,  :controller  = >  'wiki' ,  :action  = >  'show' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/wiki/lalala " ,  :controller  = >  'wiki' ,  :action  = >  'show' ,  :project_id  = >  '567' ,  :page  = >  'lalala' 
							 
						 
					
						
							
								
									
										
										
										
											2010-10-20 21:26:30 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/wiki/my_page/edit " ,  :controller  = >  'wiki' ,  :action  = >  'edit' ,  :project_id  = >  '567' ,  :page  = >  'my_page' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/1/wiki/CookBook_documentation/history " ,  :controller  = >  'wiki' ,  :action  = >  'history' ,  :project_id  = >  '1' ,  :page  = >  'CookBook_documentation' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/1/wiki/CookBook_documentation/diff/2/vs/1 " ,  :controller  = >  'wiki' ,  :action  = >  'diff' ,  :project_id  = >  '1' ,  :page  = >  'CookBook_documentation' ,  :version  = >  '2' ,  :version_from  = >  '1' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/1/wiki/CookBook_documentation/annotate/2 " ,  :controller  = >  'wiki' ,  :action  = >  'annotate' ,  :project_id  = >  '1' ,  :page  = >  'CookBook_documentation' ,  :version  = >  '2' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/22/wiki/ladida/rename " ,  :controller  = >  'wiki' ,  :action  = >  'rename' ,  :project_id  = >  '22' ,  :page  = >  'ladida' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/wiki/page_index " ,  :controller  = >  'wiki' ,  :action  = >  'page_index' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/wiki/date_index " ,  :controller  = >  'wiki' ,  :action  = >  'date_index' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/567/wiki/export " ,  :controller  = >  'wiki' ,  :action  = >  'export' ,  :project_id  = >  '567' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-20 15:42:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    
							 
						 
					
						
							
								
									
										
										
										
											2010-10-22 16:20:20 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/567/wiki/my_page/edit " ,  :controller  = >  'wiki' ,  :action  = >  'update' ,  :project_id  = >  '567' ,  :page  = >  'my_page' 
							 
						 
					
						
							
								
									
										
										
										
											2010-10-20 21:26:30 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/567/wiki/CookBook_documentation/preview " ,  :controller  = >  'wiki' ,  :action  = >  'preview' ,  :project_id  = >  '567' ,  :page  = >  'CookBook_documentation' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/22/wiki/ladida/rename " ,  :controller  = >  'wiki' ,  :action  = >  'rename' ,  :project_id  = >  '22' ,  :page  = >  'ladida' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/22/wiki/ladida/destroy " ,  :controller  = >  'wiki' ,  :action  = >  'destroy' ,  :project_id  = >  '22' ,  :page  = >  'ladida' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/22/wiki/ladida/protect " ,  :controller  = >  'wiki' ,  :action  = >  'protect' ,  :project_id  = >  '22' ,  :page  = >  'ladida' 
							 
						 
					
						
							
								
									
										
										
										
											2010-04-20 15:42:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-04-21 16:02:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  context  " wikis (plural, admin setup) "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /projects/ladida/wiki/destroy " ,  :controller  = >  'wikis' ,  :action  = >  'destroy' ,  :id  = >  'ladida' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/ladida/wiki " ,  :controller  = >  'wikis' ,  :action  = >  'edit' ,  :id  = >  'ladida' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :post ,  " /projects/ladida/wiki/destroy " ,  :controller  = >  'wikis' ,  :action  = >  'destroy' ,  :id  = >  'ladida' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-04-20 15:42:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  context  " administration panel "  do 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    should_route  :get ,  " /admin/projects " ,  :controller  = >  'admin' ,  :action  = >  'projects' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  end 
							 
						 
					
						
							
								
									
										
										
										
											2010-02-08 17:53:52 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								end