From 94a9e2848f09abcefe73020f3d6fdfec266c0dc2 2015-04-12 12:34:38 From: Jean-Philippe Lang Date: 2015-04-12 12:34:38 Subject: [PATCH] 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 600abdd..4f4ae3d 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