/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    mockInjector = require('../../../mock_injector'),
    _defineModel = require('../../../../serverside/model/_define_model.js');

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

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


exports['Define model.'] = function (test) {
    var Model = _defineModel({
        insertable: true,
        updatable: false
    });
    var model = new Model;
    test.ok(model.insert);
    test.ifError(model.updatable);
    test.done();
};