mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 15:48:12 +02:00
Fixes broken action url on time edit form (#2707).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2434 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -62,6 +62,15 @@ class TimelogControllerTest < Test::Unit::TestCase
|
||||
:content => 'Development'
|
||||
end
|
||||
|
||||
def test_get_edit_existing_time
|
||||
@request.session[:user_id] = 2
|
||||
get :edit, :id => 2, :project_id => nil
|
||||
assert_response :success
|
||||
assert_template 'edit'
|
||||
# Default activity selected
|
||||
assert_tag :tag => 'form', :attributes => { :action => '/projects/ecookbook/timelog/edit/2' }
|
||||
end
|
||||
|
||||
def test_post_edit
|
||||
# TODO: should POST to issues’ time log instead of project. change form
|
||||
# and routing
|
||||
|
||||
Reference in New Issue
Block a user