         it "should have section projects", ->
             expect(ctrl.section).to.be.equal("projects")
 
-        it 'should have a title', ->
+        it "should have a title", ->
             expect(ctrl.getTitle()).to.be.equal("common.dashboard")
 
-        it 'should set the breadcrumb', ->
+        it "should set the breadcrumb", ->
             expect(ctrl.rootScope.pageBreadcrumb).to.be.lengthOf(2)
 
         it "should have the project list", ->

        it "should have section projects", ->
            expect(ctrl.section).to.be.equal("admin")

        it 'should have a title', ->
            expect(ctrl.getTitle()).to.be.equal("common.admin-panel")

        it "should change the location", ->

            expect(ctrl.scope.checksleyErrors.detail).to.be.equal("error")


    describe "ProjecAdminValuesController", ->
        httpBackend = null
        scope = null
        ctrl = null

        beforeEach(inject(($rootScope, $controller, $httpBackend) ->
            scope = $rootScope.$new()
            routeParams = {
                pslug: "test"
            }
            ctrl = $controller("ProjectAdminValuesController", {
                $scope: scope,
                $routeParams: routeParams,
            })
            httpBackend = $httpBackend
            httpBackend.whenGET(APIURL+"/sites").respond(200, {test: "test"})
            httpBackend.whenGET("#{APIURL}/resolver?project=test").respond(200, {
                project: 1
            })
            httpBackend.whenGET("#{APIURL}/projects/1?").respond(200, FIXTURES["project"])
            httpBackend.flush()
        ))

        afterEach ->
            httpBackend.verifyNoOutstandingExpectation()
            httpBackend.verifyNoOutstandingRequest()

        it "should have section projects", ->
            expect(ctrl.section).to.be.equal("admin")

        it "should have a title", ->
            expect(ctrl.getTitle()).to.be.equal("common.admin-panel")

        it "should change the location", ->
            sinon.spy(ctrl.location, "url")

            ctrl.goTo("values")

            ctrl.location.url.should.have.been.calledOnce
            ctrl.location.url.should.have.been.calledWith("/project/test/admin/values")

        it "should set the breadcrumb", ->
            expect(ctrl.rootScope.pageBreadcrumb).to.be.lengthOf(2)

        it "should be actived", ->
            expect(ctrl.isActive("values")).to.be.true
