Merge pull request #39 from kevinansfield/version-header-fixes

Minor version header fixes
This commit is contained in:
Hannah Wolfe 2016-06-03 15:16:33 +01:00
commit b9864114ea
2 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,7 @@ module.exports = function (environment) {
// override the default version string which contains git info from
// https://github.com/cibernox/git-repo-version. Only include the
// `major.minor` version numbers
version: require('../package.json').version.replace(/\.\d+$/, '')
version: require('../package.json').version.match(/^(\d+\.)?(\d+)/)[0]
},
'ember-simple-auth': {

View File

@ -37,7 +37,6 @@ describeModule(
store.find('post', 1).catch(() => {
let [request] = server.handledRequests;
console.log(request);
expect(request.requestHeaders['X-Ghost-Version']).to.equal(version);
done();
});