 
       acceptanceSpy = @spy(Rally.apps.iterationsummary.IterationSummaryApp.prototype, '_getAcceptanceConfigObject')
 
-      @_createApp({}).then (app) =>
+      @createApp({}).then (app) =>
 
         acceptanceSpy.firstCall.returnValue.always (configAcceptance) ->
           expect(configAcceptance.title).toBe "100% Accepted"

  it "only gets scheduleStates once", ->
    scheduleStates = ['Defined', 'In-Progress', 'Completed']
    ajaxRequest = @ajax.whenQueryingAllowedValues('userstory', 'ScheduleState').respondWith scheduleStates
    @_createApp({}).then (app) =>
      expect(ajaxRequest).toHaveBeenCalledOnce()

      ajaxRequest = @ajax.whenQueryingAllowedValues('userstory', 'ScheduleState').respondWith ['Defined', 'In-Progress', 'Accepted']


      acceptanceSpy = @spy(Rally.apps.iterationsummary.IterationSummaryApp.prototype, '_getAcceptanceConfigObject')

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

        acceptanceSpy.firstCall.returnValue.always (configAcceptance) ->
          expect(configAcceptance.title).toBe "0% Accepted"
