Redmine/test
Jean-Philippe Lang a8083fb9a8 Pass the order option as an array to satisfy sqlserver adapter (#12713).
Unlike other adapters, the sqlserver adapter processes the order option and wipes it when using functions.
Here we can see a "ASC" inserted in the COALESCE call:

irb(main):001:0> Issue.order("coalesce(estimated_hours, 0), id").to_sql
=> "SELECT [issues].* FROM [issues] ORDER BY coalesce(estimated_hours ASC, 0) ASC, id ASC"

This does not happen when passing the order SQL fragments separately.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11115 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-04 10:04:25 +00:00
..
extra/redmine_pm
fixtures Fixed fixtures. 2013-01-03 13:38:22 +00:00
functional Auto-populate fields while creating a new user with LDAP (#10286). 2012-12-26 11:23:53 +00:00
integration Auto-populate fields while creating a new user with LDAP (#10286). 2012-12-26 11:23:53 +00:00
mocks Fixed: Openid registration form should not require user to enter password (#11331). 2012-07-07 06:22:35 +00:00
unit Pass the order option as an array to satisfy sqlserver adapter (#12713). 2013-01-04 10:04:25 +00:00
object_helpers.rb Makes Issue.generate_with_descendants! helper accept attributes only. 2012-10-12 08:56:09 +00:00
test_helper.rb Make the tests pass when config.threadsafe! is enabled (#12097). 2012-12-02 18:07:35 +00:00