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