mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
CSV import does not keep the project it was clicked from (#21766).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19381 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -44,9 +44,10 @@ class ImportsControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
|
||||
def test_new_should_display_the_upload_form
|
||||
get :new, :params => { :type => 'IssueImport' }
|
||||
get :new, :params => { :type => 'IssueImport', :project_id => 'subproject1' }
|
||||
assert_response :success
|
||||
assert_select 'input[name=?]', 'file'
|
||||
assert_select 'input[name=?][type=?][value=?]', 'project_id', 'hidden', 'subproject1'
|
||||
end
|
||||
|
||||
def test_create_should_save_the_file
|
||||
|
||||
Reference in New Issue
Block a user