summaryrefslogtreecommitdiffstats
path: root/test/functional/timelog_controller_test.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-08 15:39:39 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-08 15:39:39 +0000
commit4acd990ee2950a575a35b32bdfd8a75f04e958b0 (patch)
tree2bf8be13397290bfae82a5e3ea7b8126b5615875 /test/functional/timelog_controller_test.rb
parent84ebd786d6eb20693f8ba93a04be93e279be0289 (diff)
downloadredmine-4acd990ee2950a575a35b32bdfd8a75f04e958b0.tar.gz
redmine-4acd990ee2950a575a35b32bdfd8a75f04e958b0.zip
Refactor: extract TimelogController#create from TimelogController#edit
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4244 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/timelog_controller_test.rb')
-rw-r--r--test/functional/timelog_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb
index 823650257..91b8ca47c 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -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',