comparison .svn/pristine/5d/5daeeea577cc981d76dc41ea2b216dd91cc7794d.svn-base @ 1296:038ba2d95de8 redmine-2.2

Fix redmine-2.2 branch update (add missing svn files)
author Chris Cannam
date Fri, 14 Jun 2013 09:05:06 +0100
parents
children
comparison
equal deleted inserted replaced
1294:3e4c3460b6ca 1296:038ba2d95de8
1 # Redmine - project management software
2 # Copyright (C) 2006-2012 Jean-Philippe Lang
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
18 require File.expand_path('../../../test_helper', __FILE__)
19
20 class RoutingAccountTest < ActionController::IntegrationTest
21 def test_account
22 ["get", "post"].each do |method|
23 assert_routing(
24 { :method => method, :path => "/login" },
25 { :controller => 'account', :action => 'login' }
26 )
27 end
28 assert_routing(
29 { :method => 'get', :path => "/logout" },
30 { :controller => 'account', :action => 'logout' }
31 )
32 ["get", "post"].each do |method|
33 assert_routing(
34 { :method => method, :path => "/account/register" },
35 { :controller => 'account', :action => 'register' }
36 )
37 end
38 ["get", "post"].each do |method|
39 assert_routing(
40 { :method => method, :path => "/account/lost_password" },
41 { :controller => 'account', :action => 'lost_password' }
42 )
43 end
44 assert_routing(
45 { :method => 'get', :path => "/account/activate" },
46 { :controller => 'account', :action => 'activate' }
47 )
48 end
49 end