summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/issue_test.rb')
-rw-r--r--test/unit/issue_test.rb20
1 files changed, 15 insertions, 5 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 6d48f5e90..6e0c5b4ae 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -1231,23 +1231,33 @@ class IssueTest < ActiveSupport::TestCase
context "#behind_schedule?" do
should "be false if the issue has no start_date" do
- assert !Issue.new(:start_date => nil, :due_date => 1.day.from_now.to_date, :done_ratio => 0).behind_schedule?
+ assert !Issue.new(:start_date => nil,
+ :due_date => 1.day.from_now.to_date,
+ :done_ratio => 0).behind_schedule?
end
should "be false if the issue has no end_date" do
- assert !Issue.new(:start_date => 1.day.from_now.to_date, :due_date => nil, :done_ratio => 0).behind_schedule?
+ assert !Issue.new(:start_date => 1.day.from_now.to_date,
+ :due_date => nil,
+ :done_ratio => 0).behind_schedule?
end
should "be false if the issue has more done than it's calendar time" do
- assert !Issue.new(:start_date => 50.days.ago.to_date, :due_date => 50.days.from_now.to_date, :done_ratio => 90).behind_schedule?
+ assert !Issue.new(:start_date => 50.days.ago.to_date,
+ :due_date => 50.days.from_now.to_date,
+ :done_ratio => 90).behind_schedule?
end
should "be true if the issue hasn't been started at all" do
- assert Issue.new(:start_date => 1.day.ago.to_date, :due_date => 1.day.from_now.to_date, :done_ratio => 0).behind_schedule?
+ assert Issue.new(:start_date => 1.day.ago.to_date,
+ :due_date => 1.day.from_now.to_date,
+ :done_ratio => 0).behind_schedule?
end
should "be true if the issue has used more calendar time than it's done ratio" do
- assert Issue.new(:start_date => 100.days.ago.to_date, :due_date => Date.today, :done_ratio => 90).behind_schedule?
+ assert Issue.new(:start_date => 100.days.ago.to_date,
+ :due_date => Date.today,
+ :done_ratio => 90).behind_schedule?
end
end