From: Jean-Philippe Lang Date: Sun, 12 Apr 2015 12:34:38 +0000 (+0000) Subject: Fixed test failures (#19544). X-Git-Tag: 3.1.0~161 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=94a9e2848f09abcefe73020f3d6fdfec266c0dc2;p=redmine.git Fixed test failures (#19544). git-svn-id: http://svn.redmine.org/redmine/trunk@14166 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/helpers/sort_helper_test.rb b/test/unit/helpers/sort_helper_test.rb index 600abdd4a..4f4ae3d78 100644 --- a/test/unit/helpers/sort_helper_test.rb +++ b/test/unit/helpers/sort_helper_test.rb @@ -54,7 +54,7 @@ class SortHelperTest < ActionView::TestCase sort_init 'attr1', 'desc' sort_update({'attr1' => 'table1.attr1', 'attr2' => 'table2.attr2'}) - assert_equal ['table1.attr1', 'table2.attr2 DESC'], sort_clause + assert_equal ['table1.attr1 ASC', 'table2.attr2 DESC'], sort_clause assert_equal 'attr1,attr2:desc', @session['foo_bar_sort'] end @@ -74,7 +74,7 @@ class SortHelperTest < ActionView::TestCase sort_init 'attr1', 'desc' sort_update({'attr1' => 'table1.attr1', 'attr2' => 'table2.attr2'}) - assert_equal ['table1.attr1', 'table2.attr2'], sort_clause + assert_equal ['table1.attr1 ASC', 'table2.attr2 ASC'], sort_clause assert_equal 'attr1,attr2', @session['foo_bar_sort'] end