diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-15 14:28:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-15 14:28:18 +0000 |
commit | 6c1db9c3a8b23d64792890fb2855f2f3340dfc7a (patch) | |
tree | 7a313c2f8b32abe0fd917436e0feb1dfe9a9bdcc /test/unit/issue_status_test.rb | |
parent | 7c6582009aa1950d1e0c22ea88d43ff38151c058 (diff) | |
download | redmine-6c1db9c3a8b23d64792890fb2855f2f3340dfc7a.tar.gz redmine-6c1db9c3a8b23d64792890fb2855f2f3340dfc7a.zip |
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9981 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_status_test.rb')
-rw-r--r-- | test/unit/issue_status_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/issue_status_test.rb b/test/unit/issue_status_test.rb index f12fbdd3d..5d3b6a112 100644 --- a/test/unit/issue_status_test.rb +++ b/test/unit/issue_status_test.rb @@ -111,4 +111,10 @@ class IssueStatusTest < ActiveSupport::TestCase assert_equal [50], issues.map {|issue| issue.read_attribute(:done_ratio)}.uniq end end + + def test_named_scope + status = IssueStatus.named("resolved").first + assert_not_nil status + assert_equal "Resolved", status.name + end end |