Project tests updated.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4179 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2010-09-26 08:24:51 +00:00
parent a7fd592db4
commit 7a952136e0
1 changed files with 4 additions and 0 deletions

View File

@ -861,6 +861,8 @@ class ProjectTest < ActiveSupport::TestCase
assert_nil @project.start_date
end
should "be tested when issues have no start date"
should "be the earliest start date of it's issues" do
early = 7.days.ago.to_date
Issue.generate_for_project!(@project, :start_date => Date.today)
@ -890,6 +892,8 @@ class ProjectTest < ActiveSupport::TestCase
assert_nil @project.due_date
end
should "be tested when issues have no due date"
should "be the latest due date of it's issues" do
future = 7.days.from_now.to_date
Issue.generate_for_project!(@project, :due_date => future)