Refactor: extract TimelogController#create from TimelogController#edit

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4244 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2010-10-08 15:39:39 +00:00
parent 84ebd786d6
commit 4acd990ee2
6 changed files with 25 additions and 8 deletions

View File

@@ -72,11 +72,11 @@ class TimelogControllerTest < ActionController::TestCase
assert_tag :tag => 'option', :content => '--- Please select ---'
end
def test_post_edit
def test_post_create
# TODO: should POST to issues time log instead of project. change form
# and routing
@request.session[:user_id] = 3
post :edit, :project_id => 1,
post :create, :project_id => 1,
:time_entry => {:comments => 'Some work on TimelogControllerTest',
# Not the default activity
:activity_id => '11',