Yoji SHIDARA
null+****@clear*****
Thu Nov 15 17:06:29 JST 2012
Yoji SHIDARA 2012-11-15 17:06:29 +0900 (Thu, 15 Nov 2012) New Revision: 1b3dc6f7960b119133bce8030278cd6c6f297ee9 https://github.com/groonga/gcs-console/commit/1b3dc6f7960b119133bce8030278cd6c6f297ee9 Log: Fix flash message after index field deleted Modified files: routes/index.js test/index-fields.test.js Modified: routes/index.js (+1 -1) =================================================================== --- routes/index.js 2012-11-15 17:04:01 +0900 (9fc83bd) +++ routes/index.js 2012-11-15 17:06:29 +0900 (3f3ba2c) @@ -306,7 +306,7 @@ exports.domainDeleteIndexField = function(req, res) { }); return; } - req.flash('info', 'IndexField successfully created'); + req.flash('info', 'IndexField successfully deleted'); res.redirect('/domain/' + req.domain.DomainName + '/index_fields'); }); }); Modified: test/index-fields.test.js (+1 -0) =================================================================== --- test/index-fields.test.js 2012-11-15 17:04:01 +0900 (efefc65) +++ test/index-fields.test.js 2012-11-15 17:06:29 +0900 (db54931) @@ -43,6 +43,7 @@ suite('dashboard', function() { return browser.pressButton('Delete') }) .then(function() { + assert.equal(browser.text(".alert-info"), "IndexField successfully deleted"); assert.equal(browser.location.pathname, "/domain/test/index_fields"); assert.equal(browser.text('.alert-warn'), "No IndexField is defined"); }) -------------- next part -------------- HTML����������������������������...Download