 
     it "displays defect error when active defects remain from past timebox", ->
 
-      @_prepareFiveDefectsData()
-
-      @_stubApp(
+      @prepareFiveDefectsData()
+
+      @stubApp(
         startDate:new Date(2011, 4, 13)
         endDate:new Date(2011, 4, 20, 23, 59, 59)
         today:new Date(2011, 5, 14)


    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)


      testsSpy = @spy(Rally.apps.iterationsummary.IterationSummaryApp.prototype, '_getTestsConfigObject')

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

        configTests = testsSpy.firstCall.returnValue
        expect(configTests.title).toBe "33% Tests Passing"
