reverted login.js
authorTravis Webb <me@traviswebb.com>
Tue, 17 Jun 2014 08:25:24 +0000 (04:25 -0400)
committerTravis Webb <me@traviswebb.com>
Tue, 17 Jun 2014 08:25:24 +0000 (04:25 -0400)
test/lib/login.js

index f1748f2..9140ecd 100755 (executable)
@@ -9,16 +9,14 @@
   var zombieAuth = require('../lib/zombie_auth'),
     prepDatabase = require('../lib/prep_database');
 
-  describe('xTuple Login', function () {
-    this.timeout(60 * 1000);
+  before(function (done) {
+    this.timeout(10 * 120 * 1000);
 
-    it('should login', function (done) {
-      zombieAuth.loadApp(done);
+    zombieAuth.loadApp({
+      refreshLogin: true,
+      callback: function () {
+        prepDatabase.prepDatabase(done);
+      }
     });
-
-    it('should prepare database', function (done) {
-      prepDatabase.prepDatabase(done);
-    });
-
   });
 }());