mirror of
https://github.com/redmine/redmine.git
synced 2026-06-19 21:31:46 +02:00
ProjectsController#add_issue moved to IssuesController#new.
Tracker can now be changed/selected on the new issue form. This action can be invoked without the tracker_id parameter (the first enabled tracker will be used by default). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1080 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -236,23 +236,4 @@ class ProjectsControllerTest < Test::Unit::TestCase
|
||||
assert_redirected_to 'admin/projects'
|
||||
assert Project.find(1).active?
|
||||
end
|
||||
|
||||
def test_add_issue
|
||||
@request.session[:user_id] = 2
|
||||
get :add_issue, :id => 1, :tracker_id => 1
|
||||
assert_response :success
|
||||
assert_template 'add_issue'
|
||||
post :add_issue, :id => 1, :issue => {:tracker_id => 1, :subject => 'This is the test_add_issue issue', :description => 'This is the description', :priority_id => 5}
|
||||
assert_redirected_to 'projects/ecookbook/issues'
|
||||
assert Issue.find_by_subject('This is the test_add_issue issue')
|
||||
end
|
||||
|
||||
def test_copy_issue
|
||||
@request.session[:user_id] = 2
|
||||
get :add_issue, :id => 1, :copy_from => 1
|
||||
assert_template 'add_issue'
|
||||
assert_not_nil assigns(:issue)
|
||||
orig = Issue.find(1)
|
||||
assert_equal orig.subject, assigns(:issue).subject
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user