@@ -1,6 +1,6 | |||
|
1 | 1 | <h2><%= l(:label_spent_time) %></h2> |
|
2 | 2 | |
|
3 | <% labelled_tabular_form_for :time_entry, @time_entry, :url => {:action => 'edit', :project_id => @time_entry.project} do |f| %> | |
|
3 | <% labelled_tabular_form_for :time_entry, @time_entry, :url => {:action => 'edit', :id => @time_entry, :project_id => @time_entry.project} do |f| %> | |
|
4 | 4 | <%= error_messages_for 'time_entry' %> |
|
5 | 5 | <%= back_url_hidden_field_tag %> |
|
6 | 6 |
@@ -62,6 +62,15 class TimelogControllerTest < Test::Unit::TestCase | |||
|
62 | 62 | :content => 'Development' |
|
63 | 63 | end |
|
64 | 64 | |
|
65 | def test_get_edit_existing_time | |
|
66 | @request.session[:user_id] = 2 | |
|
67 | get :edit, :id => 2, :project_id => nil | |
|
68 | assert_response :success | |
|
69 | assert_template 'edit' | |
|
70 | # Default activity selected | |
|
71 | assert_tag :tag => 'form', :attributes => { :action => '/projects/ecookbook/timelog/edit/2' } | |
|
72 | end | |
|
73 | ||
|
65 | 74 | def test_post_edit |
|
66 | 75 | # TODO: should POST to issues’ time log instead of project. change form |
|
67 | 76 | # and routing |
General Comments 0
You need to be logged in to leave comments.
Login now