diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-04 18:54:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-04 18:54:45 +0000 |
commit | 49b514102237fa8d08ad9fefe5ffebf063161037 (patch) | |
tree | 8c3b55343052d0a9c93a0935db8fbfa4f2f39b95 /test/functional/issues_controller_test.rb | |
parent | d8de3106ec5f3909fecd5770682402bf50d2f0cf (diff) | |
download | redmine-49b514102237fa8d08ad9fefe5ffebf063161037.tar.gz redmine-49b514102237fa8d08ad9fefe5ffebf063161037.zip |
Test failure.
git-svn-id: http://svn.redmine.org/redmine/trunk@15887 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r-- | test/functional/issues_controller_test.rb | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 47ab36de3..a588f6aff 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -347,7 +347,7 @@ class IssuesControllerTest < Redmine::ControllerTest def test_index_with_query_grouped_by_tracker_in_reverse_order 3.times {|i| Issue.generate!(:tracker_id => (i + 1))} - get :index, :set_filter => 1, :group_by => 'tracker', :sort => 'id:desc,tracker:desc' + get :index, :set_filter => 1, :group_by => 'tracker', :c => ['tracker', 'subject'], :sort => 'id:desc,tracker:desc' assert_response :success assert_equal ["Bug", "Feature request", "Support request"].reverse, @@ -691,8 +691,10 @@ class IssuesControllerTest < Redmine::ControllerTest end def test_index_sort_by_field_not_included_in_columns - Setting.issue_list_default_columns = %w(subject author) - get :index, :sort => 'tracker' + with_settings :issue_list_default_columns => %w(subject author) do + get :index, :sort => 'tracker' + assert_response :success + end end def test_index_sort_by_assigned_to @@ -795,17 +797,19 @@ class IssuesControllerTest < Redmine::ControllerTest end def test_index_without_project_should_implicitly_add_project_column_to_default_columns - Setting.issue_list_default_columns = ['tracker', 'subject', 'assigned_to'] - get :index, :set_filter => 1 + with_settings :issue_list_default_columns => ['tracker', 'subject', 'assigned_to'] do + get :index, :set_filter => 1 + end # query should use specified columns assert_equal ["#", "Project", "Tracker", "Subject", "Assignee"], columns_in_issues_list end def test_index_without_project_and_explicit_default_columns_should_not_add_project_column - Setting.issue_list_default_columns = ['tracker', 'subject', 'assigned_to'] - columns = ['id', 'tracker', 'subject', 'assigned_to'] - get :index, :set_filter => 1, :c => columns + with_settings :issue_list_default_columns => ['tracker', 'subject', 'assigned_to'] do + columns = ['id', 'tracker', 'subject', 'assigned_to'] + get :index, :set_filter => 1, :c => columns + end # query should use specified columns assert_equal ["#", "Tracker", "Subject", "Assignee"], columns_in_issues_list |