2011-07-04 19:34:58 +00:00
|
|
|
# Redmine - project management software
|
2016-03-13 10:30:10 +00:00
|
|
|
# Copyright (C) 2006-2016 Jean-Philippe Lang
|
2010-02-08 17:53:52 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
2011-08-27 02:10:26 +00:00
|
|
|
#
|
2010-02-08 17:53:52 +00:00
|
|
|
# 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.
|
2011-08-27 02:10:26 +00:00
|
|
|
#
|
2010-02-08 17:53:52 +00:00
|
|
|
# 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.
|
|
|
|
|
|
2011-12-25 10:18:35 +00:00
|
|
|
require File.expand_path('../../../test_helper', __FILE__)
|
2010-02-08 17:53:52 +00:00
|
|
|
|
2014-11-16 14:23:32 +00:00
|
|
|
class RoutingWikisTest < Redmine::RoutingTest
|
|
|
|
|
def test_wikis
|
|
|
|
|
should_route 'POST /projects/foo/wiki' => 'wikis#edit', :id => 'foo'
|
|
|
|
|
|
|
|
|
|
should_route 'GET /projects/foo/wiki/destroy' => 'wikis#destroy', :id => 'foo'
|
|
|
|
|
should_route 'POST /projects/foo/wiki/destroy' => 'wikis#destroy', :id => 'foo'
|
2010-04-21 16:02:55 +00:00
|
|
|
end
|
2010-02-08 17:53:52 +00:00
|
|
|
end
|