         today:new Date(2011, 4, 14)
       )
 
+      defectSpy = @spy(Rally.apps.iterationsummary.IterationSummaryApp.prototype, '_getDefectsConfigObject')
+
+      @_createApp({}).then (app) =>
+
+        configDefects = defectSpy.firstCall.returnValue
+        expect(configDefects.title).toBe "5 Active Defects"
+        expect(configDefects.status).toBe "warn"
+        expect(configDefects.message).toBe app.self.CURRENT_WITH_DEFECTS
+
+    it "displays acceptance warning 5 days into a long timebox", ->
+
+      @_prepareNoneAcceptedData()
+
+      @_stubApp(
+        startDate:new Date(2011, 4, 1)
+        endDate:new Date(2011, 4, 28, 23, 59, 59)
+        today:new Date(2011, 4, 20)
+      )
+
       acceptanceSpy = @spy(Rally.apps.iterationsummary.IterationSummaryApp.prototype, '_getAcceptanceConfigObject')
 
       @_createApp({}).then (app) =>
 
-        configAcceptance = acceptanceSpy.getCall(0).returnValue
-        expect(configAcceptance.title).toBe "0% Accepted"
-        expect(configAcceptance.subtitle).toBe "(0 of 27 Points)"
-        expect(configAcceptance.status).toBe "pending"
-        expect(configAcceptance.message).toBe app.self.CURRENT_WITH_NO_ACCEPTED_WORK
-
-    it "does not display defect stats when no active defects for current timebox", ->
-
-      @_prepareNoActiveDefectsData()
+        acceptanceSpy.firstCall.returnValue.always (configAcceptance) ->
+          expect(configAcceptance.title).toBe "0% Accepted"
+          expect(configAcceptance.subtitle).toBe "(0 of 27 Points)"
+          expect(configAcceptance.status).toBe "warn"
+          expect(configAcceptance.message).toBe app.self.CURRENT_WITH_SOME_UNACCEPTED_WORK
+
+    it "displays acceptance pending 5 days into a long timebox", ->
+
+      @_prepareSomeAcceptedData()
+
+      @_stubApp(
+        startDate:new Date(2011, 4, 1)
+        endDate:new Date(2011, 4, 28, 23, 59, 59)
+        today:new Date(2011, 4, 20)
+      )
+
+      acceptanceSpy = @spy(Rally.apps.iterationsummary.IterationSummaryApp.prototype, '_getAcceptanceConfigObject')
+
+      @_createApp({}).then (app) =>
+
+        acceptanceSpy.firstCall.returnValue.always (configAcceptance) ->
+          expect(configAcceptance.title).toBe "48% Accepted"
+          expect(configAcceptance.subtitle).toBe "(13 of 27 Points)"
+          expect(configAcceptance.status).toBe "pending"
+          expect(configAcceptance.message).toBe app.self.CURRENT_WITH_SOME_UNACCEPTED_WORK
+
+    it "displays acceptance pending halfway through a short timebox", ->
+
+      @_prepareSomeAcceptedData()
+
+      @_stubApp(
+        startDate:new Date(2011, 4, 2)
+        endDate:new Date(2011, 4, 6, 23, 59, 59)
+        today:new Date(2011, 4, 5)
+      )
+
+      acceptanceSpy = @spy(Rally.apps.iterationsummary.IterationSummaryApp.prototype, '_getAcceptanceConfigObject')
+
+      @_createApp({}).then (app) =>
+
+        acceptanceSpy.firstCall.returnValue.always (configAcceptance) ->
+          expect(configAcceptance.title).toBe "48% Accepted"
+          expect(configAcceptance.subtitle).toBe "(13 of 27 Points)"
+          expect(configAcceptance.status).toBe "pending"
+          expect(configAcceptance.message).toBe app.self.CURRENT_WITH_SOME_UNACCEPTED_WORK
+
+    it "displays acceptance error when all work not accepted from past timebox", ->
+
+      @_prepareSomeAcceptedData()
+
+      @_stubApp(
+        startDate:new Date(2011, 4, 2)
+        endDate:new Date(2011, 4, 20, 23, 59, 59)
+        today:new Date(2011, 5, 5)
+      )
+
+      acceptanceSpy = @spy(Rally.apps.iterationsummary.IterationSummaryApp.prototype, '_getAcceptanceConfigObject')
+
+      @_createApp({}).then (app) =>
+
+        acceptanceSpy.firstCall.returnValue.always (configAcceptance) ->
+          expect(configAcceptance.title).toBe "48% Accepted"
+          expect(configAcceptance.subtitle).toBe "(13 of 27 Points)"
+          expect(configAcceptance.status).toBe "error"
+          expect(configAcceptance.message).toBe app.self.PAST_WITH_SOME_UNACCEPTED_WORK
+
+    it "displays defect error when active defects remain from past timebox", ->
+
+      @_prepareFiveDefectsData()
 
       @_stubApp(
         startDate:new Date(2011, 4, 13)
         endDate:new Date(2011, 4, 20, 23, 59, 59)
-        today:new Date(2011, 4, 14)
+        today:new Date(2011, 5, 14)
       )
 
       defectSpy = @spy(Rally.apps.iterationsummary.IterationSummaryApp.prototype, '_getDefectsConfigObject')
 
       @_createApp({}).then (app) =>
 
-        configDefects = defectSpy.getCall(0).returnValue
+        configDefects = defectSpy.firstCall.returnValue
+        expect(configDefects.title).toBe "5 Active Defects"
+        expect(configDefects.status).toBe "error"
+        expect(configDefects.message).toBe app.self.PAST_WITH_DEFECTS
+
+    it "does not display defect stats when no active defects for past timebox", ->
+
+      @_prepareNoActiveDefectsData()
+
+      @_stubApp(
+        startDate:new Date(2011, 4, 13)
+        endDate:new Date(2011, 4, 20, 23, 59, 59)
+        today:new Date(2011, 5, 14)
+      )
+
+      defectSpy = @spy(Rally.apps.iterationsummary.IterationSummaryApp.prototype, '_getDefectsConfigObject')
+
+      @_createApp({}).then (app) =>
+
+        configDefects = defectSpy.firstCall.returnValue
         expect(!!configDefects.title).toBeFalsy()
         expect(!!configDefects.status).toBeFalsy()
         expect(!!configDefects.message).toBeFalsy()
 
-    it "displays defect stats for current timebox", ->
-
-      @_prepareFiveDefectsData()
-
-      @_stubApp(
-        startDate:new Date(2011, 4, 13)
-        endDate:new Date(2011, 4, 20, 23, 59, 59)
-        today:new Date(2011, 4, 14)
-      )
-
-      defectSpy = @spy(Rally.apps.iterationsummary.IterationSummaryApp.prototype, '_getDefectsConfigObject')
-
-      @_createApp({}).then (app) =>
-
-        configDefects = defectSpy.getCall(0).returnValue
-        expect(configDefects.title).toBe "5 Active Defects"
-        expect(configDefects.status).toBe "warn"
-        expect(configDefects.message).toBe app.self.CURRENT_WITH_DEFECTS
-
-    it "displays acceptance warning 5 days into a long timebox", ->
-
-      @_prepareNoneAcceptedData()
-
-      @_stubApp(
-        startDate:new Date(2011, 4, 1)
-        endDate:new Date(2011, 4, 28, 23, 59, 59)
-        today:new Date(2011, 4, 20)
-      )
-
-      acceptanceSpy = @spy(Rally.apps.iterationsummary.IterationSummaryApp.prototype, '_getAcceptanceConfigObject')
-
-      @_createApp({}).then (app) =>
-
-        configAcceptance = acceptanceSpy.getCall(0).returnValue
-        expect(configAcceptance.title).toBe "0% Accepted"
-        expect(configAcceptance.subtitle).toBe "(0 of 27 Points)"
-        expect(configAcceptance.status).toBe "warn"
-        expect(configAcceptance.message).toBe app.self.CURRENT_WITH_SOME_UNACCEPTED_WORK
-
-    it "displays acceptance pending 5 days into a long timebox", ->
-
-      @_prepareSomeAcceptedData()
-
-      @_stubApp(
-        startDate:new Date(2011, 4, 1)
-        endDate:new Date(2011, 4, 28, 23, 59, 59)
-        today:new Date(2011, 4, 20)
-      )
-
-      acceptanceSpy = @spy(Rally.apps.iterationsummary.IterationSummaryApp.prototype, '_getAcceptanceConfigObject')
-
-      @_createApp({}).then (app) =>
-
-        configAcceptance = acceptanceSpy.getCall(0).returnValue
-        expect(configAcceptance.title).toBe "48% Accepted"
-        expect(configAcceptance.subtitle).toBe "(13 of 27 Points)"
-        expect(configAcceptance.status).toBe "pending"
-        expect(configAcceptance.message).toBe app.self.CURRENT_WITH_SOME_UNACCEPTED_WORK
-
-    it "displays acceptance pending halfway through a short timebox", ->
-
-      @_prepareSomeAcceptedData()
-
-      @_stubApp(
-        startDate:new Date(2011, 4, 2)
-        endDate:new Date(2011, 4, 6, 23, 59, 59)
-        today:new Date(2011, 4, 5)
-      )
-
-      acceptanceSpy = @spy(Rally.apps.iterationsummary.IterationSummaryApp.prototype, '_getAcceptanceConfigObject')
-
-      @_createApp({}).then (app) =>
-
-        configAcceptance = acceptanceSpy.getCall(0).returnValue
-        expect(configAcceptance.title).toBe "48% Accepted"
-        expect(configAcceptance.subtitle).toBe "(13 of 27 Points)"
-        expect(configAcceptance.status).toBe "pending"
-        expect(configAcceptance.message).toBe app.self.CURRENT_WITH_SOME_UNACCEPTED_WORK
-
-    it "displays acceptance error when all work not accepted from past timebox", ->
-
-      @_prepareSomeAcceptedData()
+    it "displays positive acceptance stats when all work accepted for past timebox", ->
+      @_prepareAllAcceptedData()
 
       @_stubApp(
         startDate:new Date(2011, 4, 2)


      @_createApp({}).then (app) =>

        configAcceptance = acceptanceSpy.getCall(0).returnValue
        expect(configAcceptance.title).toBe "100% Accepted"
        expect(configAcceptance.subtitle).toBe "(27 of 27 Points)"
        expect(configAcceptance.status).toBe "success"
        expect(configAcceptance.message).toBe app.self.PAST_WITH_ACCEPTED_WORK_AFTER_END_DATE

    it "does not display stats when there are no tests", ->



      @_createApp({}).then (app) =>

        configTests = testsSpy.firstCall.returnValue
        expect(configTests.title).toBe "33% Tests Passing"
        expect(configTests.subtitle).toBe "(3 of 9)"
        expect(configTests.status).toBe "error"
