Yoji SHIDARA
null+****@clear*****
Wed Oct 24 16:25:06 JST 2012
Yoji SHIDARA 2012-10-24 16:25:06 +0900 (Wed, 24 Oct 2012) New Revision: 9fa4090cd2fb719849d571d782125946dd140d9f https://github.com/groonga/gcs-console/commit/9fa4090cd2fb719849d571d782125946dd140d9f Log: Pass URL from Target Modified files: test/index.test.js test/test-utils.js Modified: test/index.test.js (+1 -1) =================================================================== --- test/index.test.js 2012-10-24 16:17:51 +0900 (18f6454) +++ test/index.test.js 2012-10-24 16:25:06 +0900 (4160dfe) @@ -13,7 +13,7 @@ suite('dashboard', function() { test('GET /', function(done) { var browser = new Browser(); - browser.visit('http://localhost:7576'). // TODO make this configurable + browser.visit(target.rootURL). then(function() { assert.ok(browser.success); assert.equal(browser.text('title'), 'Groonga CloudSearch Console'); Modified: test/test-utils.js (+1 -0) =================================================================== --- test/test-utils.js 2012-10-24 16:17:51 +0900 (6bb8d49) +++ test/test-utils.js 2012-10-24 16:25:06 +0900 (c796743) @@ -24,6 +24,7 @@ var Target = function() { this.databasePath = this.databaseDir + '/gcs'; this.gcsPath = __dirname + '/../node_modules/.bin/gcs'; this.gcsConsolePath = __dirname + '/../bin/gcs-console'; + this.rootURL = 'http://localhost:7576/' // TODO make this configurable }; Target.prototype = { -------------- next part -------------- HTML����������������������������... 下载