summaryrefslogtreecommitdiffstats
path: root/test/functional/settings_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-08 18:50:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-08 18:50:22 +0000
commit77bac4b14d3bdf0ec53d88ee4aef05471bd8d198 (patch)
tree2ae6a48b47a7ee7fe09427c83cc5fcd0259fdc96 /test/functional/settings_controller_test.rb
parentb7a435f7a02080ce07b79efc60178ef745ef3c4d (diff)
downloadredmine-77bac4b14d3bdf0ec53d88ee4aef05471bd8d198.tar.gz
redmine-77bac4b14d3bdf0ec53d88ee4aef05471bd8d198.zip
Ability to set default column order in issue list (#11068).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9780 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/settings_controller_test.rb')
-rw-r--r--test/functional/settings_controller_test.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/functional/settings_controller_test.rb b/test/functional/settings_controller_test.rb
index b178e0162..0457e70f2 100644
--- a/test/functional/settings_controller_test.rb
+++ b/test/functional/settings_controller_test.rb
@@ -46,6 +46,26 @@ class SettingsControllerTest < ActionController::TestCase
assert_tag 'input', :attributes => {:name => 'settings[enabled_scm][]', :value => ''}
end
+ def test_get_edit_should_preselect_default_issue_list_columns
+ with_settings :issue_list_default_columns => %w(tracker subject status updated_on) do
+ get :edit
+ assert_response :success
+ end
+
+ assert_select 'select[id=selected_columns][name=?]', 'settings[issue_list_default_columns][]' do
+ assert_select 'option', 4
+ assert_select 'option[value=tracker]', :text => 'Tracker'
+ assert_select 'option[value=subject]', :text => 'Subject'
+ assert_select 'option[value=status]', :text => 'Status'
+ assert_select 'option[value=updated_on]', :text => 'Updated'
+ end
+
+ assert_select 'select[id=available_columns]' do
+ assert_select 'option[value=tracker]', 0
+ assert_select 'option[value=priority]', :text => 'Priority'
+ end
+ end
+
def test_post_edit_notifications
post :edit, :settings => {:mail_from => 'functional@test.foo',
:bcc_recipients => '0',