]> khamidou — GitHub mirrors - kite.git/commitdiff
renamed unit test files
authorkarim hamidou <khamidou@gmail.com>
Fri, 18 Oct 2013 19:34:35 +0000 (21:34 +0200)
committerkarim hamidou <khamidou@gmail.com>
Fri, 18 Oct 2013 19:34:35 +0000 (21:34 +0200)
src/front/test/unit/controllers.spec.js [new file with mode: 0644]
src/front/test/unit/controllersSpec.js [deleted file]
src/front/test/unit/directives.spec.js [moved from src/front/test/unit/directivesSpec.js with 100% similarity]
src/front/test/unit/filters.spec.js [moved from src/front/test/unit/filtersSpec.js with 100% similarity]
src/front/test/unit/services.spec.js [moved from src/front/test/unit/servicesSpec.js with 100% similarity]

diff --git a/src/front/test/unit/controllers.spec.js b/src/front/test/unit/controllers.spec.js
new file mode 100644 (file)
index 0000000..6b6c078
--- /dev/null
@@ -0,0 +1,20 @@
+'use strict';
+
+/* jasmine specs for controllers go here */
+
+describe('controllers', function(){
+    beforeEach(module('KiteMail.controllers'));
+
+    describe('MailsListController', function() {
+        it('should do an ajax request to query mails', inject(function($controller, $httpBackend) {
+            var scope = {};
+            this.$httpBackend.expectGET('/karim/mail', 200);
+            var ctrl = $controller("MailsListController", {$scope: scope})
+            this.$httpBackend.flush();
+        }));
+
+        it('should ....', inject(function() {
+        //spec body
+        }));
+    });
+});
diff --git a/src/front/test/unit/controllersSpec.js b/src/front/test/unit/controllersSpec.js
deleted file mode 100644 (file)
index 295c9f2..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-/* jasmine specs for controllers go here */
-
-describe('controllers', function(){
-  beforeEach(module('KiteMail.controllers'));
-
-
-  it('should ....', inject(function() {
-    //spec body
-  }));
-
-  it('should ....', inject(function() {
-    //spec body
-  }));
-});