From b540046ed7084ba50f5ca280f3ffae0751af8142 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 9 May 2019 07:40:06 +0000 Subject: Generalize issues imports (#28234). Extend import controller to support arbitrary imports based on Import subclasses. This way, we may add other kinds of imports, by providing some views and a custom import class. This may also be done from within plugins. Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@18145 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/routing/imports_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/integration/routing') diff --git a/test/integration/routing/imports_test.rb b/test/integration/routing/imports_test.rb index ec71470d0..eb96a9a98 100644 --- a/test/integration/routing/imports_test.rb +++ b/test/integration/routing/imports_test.rb @@ -21,7 +21,8 @@ require File.expand_path('../../../test_helper', __FILE__) class RoutingImportsTest < Redmine::RoutingTest def test_imports - should_route 'GET /issues/imports/new' => 'imports#new' + should_route 'GET /issues/imports/new' => 'imports#new', :type => 'IssueImport' + should_route 'POST /imports' => 'imports#create' should_route 'GET /imports/4ae6bc' => 'imports#show', :id => '4ae6bc' -- cgit v1.2.3