0
@@ -58,14 +58,14 @@ class ReleaseTest < ActiveSupport::TestCase
0
should_be_ordered_descending_by_release_date
0
- context "
estimate_total" do
0
+ context "
left_todo" do
0
should "be total of estimates of stories that are not done" do
0
- assert_equal 3, releases(:tea_and_biscuits).
estimate_total0
+ assert_equal 3, releases(:tea_and_biscuits).
left_todo0
should "consider nil estimate to be zero" do
0
releases(:tea_and_biscuits).stories << Story.new
0
- assert_equal 3, releases(:tea_and_biscuits).
estimate_total0
+ assert_equal 3, releases(:tea_and_biscuits).
left_todo0
@@ -78,15 +78,15 @@ class ReleaseTest < ActiveSupport::TestCase
0
should "populate event history for the day with the estimate total" do
0
@release.notify_story_change
0
- assert_equal 3, @release.release_histories.find_by_history_date(@today).
estimate_total0
+ assert_equal 3, @release.release_histories.find_by_history_date(@today).
left_todo0
should "only create one entry per day" do
0
- @release.release_histories.create(:
estimate_total=>5, :history_date=>@today)
0
+ @release.release_histories.create(:
left_todo=>5, :history_date=>@today)
0
@release.notify_story_change
0
today_histories = @release.release_histories.find_all_by_history_date(@today)
0
assert_equal 1, today_histories.size
0
- assert_equal 3, today_histories.first.
estimate_total0
+ assert_equal 3, today_histories.first.
left_todo0
@@ -104,4 +104,6 @@ class ReleaseTest < ActiveSupport::TestCase
0
@release.to_burndown_graph
Comments
No one has commented yet.