mirror of
https://github.com/redmine/redmine.git
synced 2026-03-06 20:41:27 +01:00
Refactor: merge IssuesController#update_form into IssuesController#new
The #update_form action was only refreshing the issue attributes form, so it's just a specialized JavaScript version of #new. This also removed old code that was extracted in other places (@issue.new_statuses_allowed_to). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4011 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -365,7 +365,7 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
|
||||
def test_update_new_form
|
||||
@request.session[:user_id] = 2
|
||||
xhr :post, :update_form, :project_id => 1,
|
||||
xhr :post, :new, :project_id => 1,
|
||||
:issue => {:tracker_id => 2,
|
||||
:subject => 'This is the test_new issue',
|
||||
:description => 'This is the description',
|
||||
@@ -617,7 +617,7 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
|
||||
def test_update_edit_form
|
||||
@request.session[:user_id] = 2
|
||||
xhr :post, :update_form, :project_id => 1,
|
||||
xhr :post, :new, :project_id => 1,
|
||||
:id => 1,
|
||||
:issue => {:tracker_id => 2,
|
||||
:subject => 'This is the test_new issue',
|
||||
|
||||
Reference in New Issue
Block a user