code layout clean up test_assignable_versions of unit issue test

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10654 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-10-13 11:20:31 +00:00
parent 02c770968f
commit 6ebfe54e6e
1 changed files with 3 additions and 1 deletions

View File

@ -878,7 +878,9 @@ class IssueTest < ActiveSupport::TestCase
end end
def test_assignable_versions def test_assignable_versions
issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 1, :status_id => 1, :fixed_version_id => 1, :subject => 'New issue') issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 1,
:status_id => 1, :fixed_version_id => 1,
:subject => 'New issue')
assert_equal ['open'], issue.assignable_versions.collect(&:status).uniq assert_equal ['open'], issue.assignable_versions.collect(&:status).uniq
end end