]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up test_overdue of unit issue test
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 13 Oct 2012 10:14:42 +0000 (10:14 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 13 Oct 2012 10:14:42 +0000 (10:14 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10633 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/issue_test.rb

index 14c0fe2f1bc009878cc03163f802e61486126fa4..6d48f5e906aabb9413cae7e4490695516d3c016b 100644 (file)
@@ -1223,7 +1223,10 @@ class IssueTest < ActiveSupport::TestCase
     assert !Issue.new(:due_date => Date.today).overdue?
     assert !Issue.new(:due_date => 1.day.from_now.to_date).overdue?
     assert !Issue.new(:due_date => nil).overdue?
-    assert !Issue.new(:due_date => 1.day.ago.to_date, :status => IssueStatus.find(:first, :conditions => {:is_closed => true})).overdue?
+    assert !Issue.new(:due_date => 1.day.ago.to_date,
+                      :status => IssueStatus.find(:first,
+                                                  :conditions => {:is_closed => true})
+                      ).overdue?
   end
 
   context "#behind_schedule?" do