summaryrefslogtreecommitdiffstats
path: root/test/functional/workflows_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-05-13 09:00:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-05-13 09:00:26 +0000
commit426b1d6fcd106f3868414d2a4f69196583fb531e (patch)
tree587cc5c96738a037f701903b7a49f8173e03cbe0 /test/functional/workflows_controller_test.rb
parent478a549356cf144ddccf21b8ef57af3b38d2f3df (diff)
downloadredmine-426b1d6fcd106f3868414d2a4f69196583fb531e.tar.gz
redmine-426b1d6fcd106f3868414d2a4f69196583fb531e.zip
Fixed that option tags are escaped.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9683 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/workflows_controller_test.rb')
-rw-r--r--test/functional/workflows_controller_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/workflows_controller_test.rb b/test/functional/workflows_controller_test.rb
index b1526336c..5c37afc59 100644
--- a/test/functional/workflows_controller_test.rb
+++ b/test/functional/workflows_controller_test.rb
@@ -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