+FIXTURES = {
+    project: {
+        id: 1,
+        domain: 1,
+        name: "Project Example 0",
+        slug: "project-example-0",
+        description: "Project example 0 description",
+        created_date: "2013-12-20T09:53:46.361Z",
+        modified_date: "2013-12-20T09:53:59.027Z",
+        owner: 2,
+        public: true,
+        total_milestones: 5,
+        total_story_points: 1062.0,
+        default_points: 1,
+        default_us_status: 1,
+        default_task_status: 1,
+        default_priority: 2,
+        default_severity: 3,
+        default_issue_status: 1,
+        default_issue_type: 1,
+        default_question_status: 1,
+        members: []
+        tags: "",
+        list_of_milestones: [],
+        roles: [],
+        active_memberships: [],
+        memberships: [],
+        us_statuses: [],
+        points: [],
+        task_statuses: [
+            {
+                id: 1,
+                name: "New",
+                order: 1,
+                is_closed: false,
+                project: 1
+            },
+            {
+                id: 2,
+                name: "In progress",
+                order: 2,
+                is_closed: false,
+                color: "#ff9900",
+                project: 1
+            },
+            {
+                id: 3,
+                name: "Ready for test",
+                order: 3,
+                is_closed: true,
+                color: "#ffcc00",
+                project: 1
+            },
+            {
+                id: 4,
+                name: "Closed",
+                order: 4,
+                is_closed: true,
+                color: "#669900",
+                project: 1
+            },
+            {
+                id: 5,
+                name: "Needs Info",
+                order: 5,
+                is_closed: false,
+                color: "#999999",
+                project: 1
+            }
+        ],
+        priorities: [],
+        severities: [],
+        issue_statuses: [],
+        issue_types: [],
+    }
+}
+
 describe "projectsController", ->
     APIURL = "http://localhost:8000/api/v1"
 

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

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

        it "should be actived", ->

            })
            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.whenPATCH("#{APIURL}/projects/1", {name:"New name"}).respond(
                                                             202, {detail: "success"})
            httpBackend.whenPATCH("#{APIURL}/projects/1", {total_milestones: "Error"}).respond(
                                                                         400, {detail: "error"})
            httpBackend.flush()
        ))

