summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-08-20 15:22:19 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-08-20 15:22:19 +0000
commitdfd1d0c7feef44685f4c72a3126f972610021055 (patch)
tree39bb7e028d1cb3fcfc3490789b7e6632f9d25af3 /test/functional
parent969655789792e6f77ff7dc67bb83e20fadffeb2f (diff)
downloadredmine-dfd1d0c7feef44685f4c72a3126f972610021055.tar.gz
redmine-dfd1d0c7feef44685f4c72a3126f972610021055.zip
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
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issues_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index d52f63834..dfdb74c42 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -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',