Adds assertions on the confirmation form.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10405 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-09-16 15:39:11 +00:00
parent b81a578eb6
commit 57c38a33e5
1 changed files with 5 additions and 0 deletions

View File

@ -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