summaryrefslogtreecommitdiffstats
path: root/test/functional/versions_controller_test.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-15 16:50:25 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-15 16:50:25 +0000
commitbe6e0927f3ce95e751bd3c6f4a61de6979898012 (patch)
treea71c41d3f1f19ef60418f945fcb70494a39a516c /test/functional/versions_controller_test.rb
parentcdfc57d5442f72d62437f52af480049c943ecbf8 (diff)
downloadredmine-be6e0927f3ce95e751bd3c6f4a61de6979898012.tar.gz
redmine-be6e0927f3ce95e751bd3c6f4a61de6979898012.zip
Refactor: Split VersionsController#edit into #edit and #update
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4088 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/versions_controller_test.rb')
-rw-r--r--test/functional/versions_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb
index f738794ae..9e8cdf90d 100644
--- a/test/functional/versions_controller_test.rb
+++ b/test/functional/versions_controller_test.rb
@@ -113,9 +113,9 @@ class VersionsControllerTest < ActionController::TestCase
assert_not_nil Version.find_by_status('closed')
end
- def test_post_edit
+ def test_post_update
@request.session[:user_id] = 2
- post :edit, :id => 2,
+ post :update, :id => 2,
:version => { :name => 'New version name',
:effective_date => Date.today.strftime("%Y-%m-%d")}
assert_redirected_to :controller => 'projects', :action => 'settings', :tab => 'versions', :id => 'ecookbook'