diff options
author | Go MAEDA <maeda@farend.jp> | 2019-05-09 07:40:06 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-05-09 07:40:06 +0000 |
commit | b540046ed7084ba50f5ca280f3ffae0751af8142 (patch) | |
tree | 4bc946090d4940a219e84f70ca72c5655de5be42 /test/integration/routing | |
parent | bcc60805c97104f44a37b92321d7aa1e5c51b622 (diff) | |
download | redmine-b540046ed7084ba50f5ca280f3ffae0751af8142.tar.gz redmine-b540046ed7084ba50f5ca280f3ffae0751af8142.zip |
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
Diffstat (limited to 'test/integration/routing')
-rw-r--r-- | test/integration/routing/imports_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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' |