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
This commit is contained in:
parent
dd887891f7
commit
be79553f33
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue