Adds a sorted scope to IssueStatus model.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9989 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-07-15 15:33:17 +00:00
parent cb09055d60
commit 7946f4a696
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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