split describe registration_type accomp
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 23 Jan 2013 01:21:49 +0000 (02:21 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 23 Jan 2013 01:21:49 +0000 (02:21 +0100)
app/js/testApp.js [new file with mode: 0644]
test/e2e/scenarios.js
test/e2e/testApp.js [deleted file]

diff --git a/app/js/testApp.js b/app/js/testApp.js
new file mode 100644 (file)
index 0000000..51295a7
--- /dev/null
@@ -0,0 +1,24 @@
+// https://groups.google.com/forum/?fromgroups=#!searchin/angular/e2e$20mock|sort:date/angular/ObdxCoCObYU/KENkGVfIZYkJ
+
+angular.module('testApp', ['myApp', 'ngMockE2E' ]).
+       run(function ($httpBackend) {
+               console.log('mock $httpBackend', $httpBackend);
+               $httpBackend.whenGET(/partials\/.*/).passThrough();
+               $httpBackend.whenJSONP(/./).passThrough();
+               $httpBackend.whenGET(/registration/).passThrough();
+               $httpBackend.whenPOST(/registration/).passThrough();
+       }
+);
+
+// mock console for IE
+if(!window.console) {
+        window.console = new function() {
+                this.log = function(str) {};
+                this.info = function(str) {};
+                this.debug = function(str) {};
+        };
+}
+
+
+console.log('mock testApp');
+
index 61e79eb..4bd1abf 100644 (file)
@@ -52,6 +52,10 @@ describe('myApp', function() {
                expect(r.count()).toBe(4);
 //             expect(r.row(0)).toEqual({});
        });
                expect(r.count()).toBe(4);
 //             expect(r.row(0)).toEqual({});
        });
+  
+  });
+
+  describe('registration_type accomp', function() {
 
        var registration_url;
 
 
        var registration_url;
 
@@ -68,7 +72,7 @@ describe('myApp', function() {
                element('#edit-registration').click();
                expect(browser().location().url()).toMatch(/registration/);
                registration_url = browser().location().url();
                element('#edit-registration').click();
                expect(browser().location().url()).toMatch(/registration/);
                registration_url = browser().location().url();
-               console.log('registration_url', registration_url);
+               //dump('registration_url', registration_url);
        });
 
        it('accomp finish registration', function() {
        });
 
        it('accomp finish registration', function() {
diff --git a/test/e2e/testApp.js b/test/e2e/testApp.js
deleted file mode 100644 (file)
index 51295a7..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// https://groups.google.com/forum/?fromgroups=#!searchin/angular/e2e$20mock|sort:date/angular/ObdxCoCObYU/KENkGVfIZYkJ
-
-angular.module('testApp', ['myApp', 'ngMockE2E' ]).
-       run(function ($httpBackend) {
-               console.log('mock $httpBackend', $httpBackend);
-               $httpBackend.whenGET(/partials\/.*/).passThrough();
-               $httpBackend.whenJSONP(/./).passThrough();
-               $httpBackend.whenGET(/registration/).passThrough();
-               $httpBackend.whenPOST(/registration/).passThrough();
-       }
-);
-
-// mock console for IE
-if(!window.console) {
-        window.console = new function() {
-                this.log = function(str) {};
-                this.info = function(str) {};
-                this.debug = function(str) {};
-        };
-}
-
-
-console.log('mock testApp');
-