From: Jean-Philippe Lang Date: Sun, 16 Sep 2012 15:39:11 +0000 (+0000) Subject: Adds assertions on the confirmation form. X-Git-Tag: 2.2.0~384 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=57c38a33e5715be8d08cff8b0f0fc8464c39de29;p=redmine.git Adds assertions on the confirmation form. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10405 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index b210b891f..dceea3971 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -618,6 +618,11 @@ class WikiControllerTest < ActionController::TestCase end assert_response :success assert_template 'destroy' + assert_select 'form' do + assert_select 'input[name=todo][value=nullify]' + assert_select 'input[name=todo][value=destroy]' + assert_select 'input[name=todo][value=reassign]' + end end def test_destroy_parent_with_nullify_should_delete_parent_only