diff --git a/core/test/utils/api.js b/core/test/utils/api.js index c4efdc1865..7880b79c74 100644 --- a/core/test/utils/api.js +++ b/core/test/utils/api.js @@ -1,9 +1,10 @@ -var url = require('url'), - moment= require('moment'), - ApiRouteBase = '/ghost/api/v0.1/', - host = 'localhost', - port = '2369', - schema = 'http://', +var url = require('url'), + moment = require('moment'), + config = require('../../server/config'), + ApiRouteBase = '/ghost/api/v0.1/', + host = config.server.host, + port = config.server.port, + schema = 'http://', expectedProperties = { posts: ['posts', 'meta'], users: ['users', 'meta'],