From e5cc169bf74d6bf004f6f48518a595739f9c2d59 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe <erisds@gmail.com> Date: Tue, 19 May 2015 18:58:11 +0100 Subject: [PATCH] Removing really old admin comments refs #1773 --- core/test/functional/routes/admin_spec.js | 139 ---------------------- 1 file changed, 139 deletions(-) diff --git a/core/test/functional/routes/admin_spec.js b/core/test/functional/routes/admin_spec.js index 6563a022a1..09d289fd12 100644 --- a/core/test/functional/routes/admin_spec.js +++ b/core/test/functional/routes/admin_spec.js @@ -208,144 +208,5 @@ describe('Admin Routing', function () { .expect(200) .end(doEnd(done)); }); - - // Add user - - // it('should redirect from /ghost/signup to /ghost/signin with user', function (done) { - // done(); - // }); - - // it('should respond with html for /ghost/signin', function (done) { - // done(); - // }); - - // Do Login - - // it('should redirect from /ghost/signup to /ghost/ when logged in', function (done) { - // done(); - // }); - - // it('should redirect from /ghost/signup to /ghost/ when logged in', function (done) { - // done(); - // }); }); - - // describe('Ghost Admin Forgot Password', function () { - // before(function (done) { - // // Create a user / do setup etc - // testUtils.clearData() - // .then(function () { - // return testUtils.initData(); - // }) - // .then(function () { - // return testUtils.insertDefaultFixtures(); - // }).then(function () { - // done(); - // }) - // .catch(done); - // }); - - // it('should respond with html for /ghost/forgotten/', function (done) { - // request.get('/ghost/forgotten/') - // .expect('Content-Type', /html/) - // .expect('Cache-Control', testUtils.cacheRules['private']) - // .expect(200) - // .end(doEnd(done)); - // }); - - // it('should respond 404 for /ghost/reset/', function (done) { - // request.get('/ghost/reset/') - // .expect('Cache-Control', testUtils.cacheRules['private']) - // .expect(404) - // .expect(/Page Not Found/) - // .end(doEnd(done)); - // }); - - // it('should redirect /ghost/reset/*/', function (done) { - // request.get('/ghost/reset/athing/') - // .expect('Location', /ghost\/forgotten/) - // .expect('Cache-Control', testUtils.cacheRules['private']) - // .expect(302) - // .end(doEnd(done)); - // }); - // }); - // }); - - // TODO: not working anymore, needs new test for Ember - // describe('Authenticated Admin Routing', function () { - // var user = testUtils.DataGenerator.forModel.users[0]; - - // before(function (done) { - // var app = express(); - - // ghost({app: app}).then(function (_ghostServer) { - // ghostServer = _ghostServer; - // request = agent(app); - - // testUtils.clearData() - // .then(function () { - // return testUtils.initData(); - // }) - // .then(function () { - // return testUtils.insertDefaultFixtures(); - // }) - // .then(function () { - - // request.get('/ghost/signin/') - // .expect(200) - // .end(function (err, res) { - // if (err) { - // return done(err); - // } - - // process.nextTick(function () { - // request.post('/ghost/signin/') - // .send({email: user.email, password: user.password}) - // .expect(200) - // .end(function (err, res) { - // if (err) { - // return done(err); - // } - - // request.saveCookies(res); - // request.get('/ghost/') - // .expect(200) - // .end(function (err, res) { - // if (err) { - // return done(err); - // } - - // done(); - // }); - // }); - - // }); - - // }); - // }).catch(done); - // }).catch(function (e) { - // console.log('Ghost Error: ', e); - // console.log(e.stack); - // }); - // }); - - // after(function () { - // ghostServer.stop(); - // }); - - // describe('Ghost Admin magic /view/ route', function () { - - // it('should redirect to the single post page on the frontend', function (done) { - // request.get('/ghost/editor/1/view/') - // .expect(302) - // .expect('Location', '/welcome-to-ghost/') - // .end(function (err, res) { - // if (err) { - // return done(err); - // } - - // done(); - // }); - // }); - // }); });