Fixed that option tags are escaped.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9683 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-05-13 09:00:26 +00:00
parent 478a549356
commit 426b1d6fcd
2 changed files with 18 additions and 6 deletions

View File

@@ -142,6 +142,18 @@ class WorkflowsControllerTest < ActionController::TestCase
get :copy
assert_response :success
assert_template 'copy'
assert_select 'select[name=source_tracker_id]' do
assert_select 'option[value=1]', :text => 'Bug'
end
assert_select 'select[name=source_role_id]' do
assert_select 'option[value=2]', :text => 'Developer'
end
assert_select 'select[name=?]', 'target_tracker_ids[]' do
assert_select 'option[value=3]', :text => 'Support request'
end
assert_select 'select[name=?]', 'target_role_ids[]' do
assert_select 'option[value=1]', :text => 'Manager'
end
end
def test_post_copy_one_to_one