@@ -1,6 +1,6 | |||
|
1 | 1 | <h2><%= l(:label_confirmation) %></h2> |
|
2 | 2 | |
|
3 | <% form_tag do %> | |
|
3 | <% form_tag({}, :method => :delete) do %> | |
|
4 | 4 | <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %> |
|
5 | 5 | <div class="box"> |
|
6 | 6 | <p><strong><%= l(:text_destroy_time_entries_question, :hours => number_with_precision(@hours, :precision => 2)) %></strong></p> |
@@ -2491,6 +2491,8 class IssuesControllerTest < ActionController::TestCase | |||
|
2491 | 2491 | assert_template 'destroy' |
|
2492 | 2492 | assert_not_nil assigns(:hours) |
|
2493 | 2493 | assert Issue.find_by_id(1) && Issue.find_by_id(3) |
|
2494 | assert_tag 'form', | |
|
2495 | :descendant => {:tag => 'input', :attributes => {:name => '_method', :value => 'delete'}} | |
|
2494 | 2496 | end |
|
2495 | 2497 | |
|
2496 | 2498 | def test_destroy_issues_and_destroy_time_entries |
General Comments 0
You need to be logged in to leave comments.
Login now