/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    mockInjector = require('../../../mock_injector'),
    versionUp = require('../../../../ci/worker/version_up.js');

exports.setUp = function (done) {
    done();
};

exports.tearDown = function (done) {
    mockInjector.restoreAll();
    done();
};


exports['Version up.'] = function (test) {
    var versionFile = testResource.resolveMockFile('mock_version.txt');
    versionUp({
        versionFile: versionFile
    }, function (err) {
        test.ifError(err);
        test.done();
    });
};
