From be79553f33db146b2fb250188314b09e3bdc4f34 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 13 Oct 2012 10:14:42 +0000 Subject: [PATCH] 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 --- test/unit/issue_test.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5