diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-15 15:33:17 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-15 15:33:17 +0000 |
commit | 7946f4a69668ac5ce1699b4c5940482497b929ed (patch) | |
tree | dc77877d26daf053e8b3182bc223260e16872268 /test/unit/issue_status_test.rb | |
parent | cb09055d60a711438cb90259d8616def79586d57 (diff) | |
download | redmine-7946f4a69668ac5ce1699b4c5940482497b929ed.tar.gz redmine-7946f4a69668ac5ce1699b4c5940482497b929ed.zip |
Adds a sorted scope to IssueStatus model.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9989 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_status_test.rb')
-rw-r--r-- | test/unit/issue_status_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/issue_status_test.rb b/test/unit/issue_status_test.rb index 5d3b6a112..75c86e39e 100644 --- a/test/unit/issue_status_test.rb +++ b/test/unit/issue_status_test.rb @@ -112,6 +112,10 @@ class IssueStatusTest < ActiveSupport::TestCase end end + def test_sorted_scope + assert_equal IssueStatus.all.sort, IssueStatus.sorted.all + end + def test_named_scope status = IssueStatus.named("resolved").first assert_not_nil status |