                 $confirm: confirmMock
             })
             httpBackend = $httpBackend
-            httpBackend.whenGET(APIURL+"/locales/en/app.json").respond(200, {})
-            httpBackend.whenGET(APIURL+"/sites").respond(200, {test: "test"})
+            httpBackend.whenGET("#{APIURL}/sites").respond(200, {test: "test"})
             httpBackend.flush()
         ))
 


        it "should allow to save resorted", inject ($model) ->
            itemList = [{id: 1, order: 2}, {id: 2, order: 1}, {id: 3, order: 3}]
            ctrl.scope[ctrl.instanceModel] = _.map(itemList, (o) ->
                $model.make_model("choices/userstory-statuses", o))

            httpBackend.expectPOST(APIURL+"/userstory-statuses/bulk_update_order",
                    {project: FIXTURES.project.id, bulk_userstory_statuses: [[1,0],[2,1],[3,2]]}).respond(200)
            promise = ctrl.resort(ctrl.instanceModel)
            httpBackend.flush()


    describe "PointsAdminController", ->


        it "should create on error", ->
            sinon.spy(ctrl.gmFlash, "error")
            httpBackend.expectPOST("#{APIURL}/issue-types?",
                    {project: FIXTURES.project.id, name: "error test"}).respond(400, {_error_message: "error"})

            ctrl.openForm()
