Skip to content

Commit

Permalink
Pass URL from Target
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Oct 24, 2012
1 parent 277a788 commit 9fa4090
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions test/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 9fa4090

Please sign in to comment.