summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-02 16:57:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-02 16:57:57 +0000
commit7edf345fbec7f71726cbc9d805342d3db61eb997 (patch)
treed5a3c123debc1f88177bc22253723bfba4c4e3ef /test/functional/issues_controller_test.rb
parent9c4014f446d884e88305851204950b907e0f891c (diff)
downloadredmine-7edf345fbec7f71726cbc9d805342d3db61eb997.tar.gz
redmine-7edf345fbec7f71726cbc9d805342d3db61eb997.zip
Adds a test for displaying list custom fields on the new issue form.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9058 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index b52cca5e8..585ee2fa9 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -1196,6 +1196,18 @@ class IssuesControllerTest < ActionController::TestCase
assert_no_tag 'input', :attributes => {:name => 'issue[watcher_user_ids][]'}
end
+ def test_get_new_with_list_custom_field
+ @request.session[:user_id] = 2
+ get :new, :project_id => 1, :tracker_id => 1
+ assert_response :success
+ assert_template 'new'
+
+ assert_tag 'select',
+ :attributes => {:name => 'issue[custom_field_values][1]'},
+ :children => {:count => 4},
+ :child => {:tag => 'option', :attributes => {:value => 'MySQL'}, :content => 'MySQL'}
+ end
+
def test_get_new_with_multi_custom_field
field = IssueCustomField.find(1)
field.update_attribute :multiple, true