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
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user