From: Toshi MARUYAMA Date: Sat, 13 Oct 2012 10:14:42 +0000 (+0000) Subject: code layout clean up test_overdue of unit issue test X-Git-Tag: 2.2.0~224 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=be79553f33db146b2fb250188314b09e3bdc4f34;p=redmine.git code layout clean up test_overdue of unit issue test git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10633 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index 14c0fe2f1..6d48f5e90 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_test.rb @@ -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