/**
 * lark-config - index.js
 * Copyright(c) 2014 larkjs-team(https://github.com/larkjs)
 * MIT Licensed
 */

'use strict';

//To work around mocha test
process.mainModule = module;

var config = require('..');

var expect = {
  environment: 'development',
  port: 3000,
  mvc: { path: 'models' },
  travis: { language: 'node_js', node_js: [ '0.11.13', '0.11.14' ] },
  views: { engine: 'handlebars', layout: 'layouts' }
};

describe('config', function () {
  it('should equal expect"', function (done) {
    var configs = config({
      directory: "../example/config"
    });
    JSON.stringify(configs).should.equal(JSON.stringify(expect));
    done();
  });
});

@@ -225,38 +225,8 @@
 = %7B%0A
-  environment: 'development',%0A
   po
@@ -235,16 +235,16 @@
 : 3000,%0A
+
   mvc: %7B
@@ -384,16 +384,47 @@
 youts' %7D
+,%0A  environment: 'development',
 %0A%7D;%0A%0Ades
@@ -568,16 +568,16 @@
 ig%22%0A
-
     %7D);%0A
     
@@ -572,16 +572,47 @@
     %7D);%0A
+    delete configs.configPath;%0A
     JSON

fix test