var testResource = require('../test_resource'),
    findupApemanfile = require('../../lib/findup_apemanfile');


exports['Find in dir.'] = function (test) {
    var mockDir = testResource.resolveMockFile('mock_apeman_app');
    test.ok(findupApemanfile._findInDir(mockDir));
    test.ifError(findupApemanfile._findInDir(__dirname));
    test.done();
};

exports['Find an apeman file.'] = function (test) {
    var mockDir = testResource.resolveMockFile('mock_apeman_app');
    test.ok(findupApemanfile(mockDir));
    test.done();
};
