null+****@clear*****
null+****@clear*****
2012年 8月 6日 (月) 16:00:47 JST
SHIMODA Hiroshi 2012-08-06 16:00:47 +0900 (Mon, 06 Aug 2012) New Revision: 28432ed4b9fe4af7700bb3f054e57bd5929d7ad1 https://github.com/groonga/gcs/commit/28432ed4b9fe4af7700bb3f054e57bd5929d7ad1 Log: Add test for cs-delete-domain Modified files: test/cs-commands.test.js Modified: test/cs-commands.test.js (+18 -1) =================================================================== --- test/cs-commands.test.js 2012-08-06 15:59:12 +0900 (06b3e90) +++ test/cs-commands.test.js 2012-08-06 16:00:47 +0900 (f3099cc) @@ -121,7 +121,7 @@ suite('cs-delete-domain', function() { }); }); - test('delete unexisting domain', function(done) { + test('delete not-existing domain', function(done) { utils .run('cs-delete-domain', '--domain-name', 'test', @@ -131,6 +131,23 @@ suite('cs-delete-domain', function() { assert.deepEqual({ code: result.code, message: result.output.stdout }, { code: 1, + message: 'You must specify an existing domain name\n' }); + done(); + }) + .error(function(e) { + done(e); + }); + }); + + test('delete without domain', function(done) { + utils + .run('cs-delete-domain', + '--force', + '--database-path', temporaryDatabase.path) + .next(function(result) { + assert.deepEqual({ code: result.code, + message: result.output.stdout }, + { code: 1, message: 'You must specify the domain name\n' }); done(); }) -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...Download