/**!
 * enable - test/enable.test.js
 *
 * Copyright(c) 2014 fengmk2 and other contributors.
 * MIT Licensed
 *
 * Authors:
 *   fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)
 */

"use strict";

/**
 * Module dependencies.
 */

var should = require('should');
var enable = require('../');

describe('enable.test.js', function () {
  it('should detect generator', function () {
    enable.generator.should.be.a.Boolean;
    if (process.version.indexOf('v0.11.') === 0) {
      enable.generator.should.equal(true);
    } else if (process.version.indexOf('v0.10.') === 0) {
      enable.generator.should.equal(false);
    }
  });

  it('should detect let', function () {
    if (process.version.indexOf('v0.10.') === 0) {
      enable.let.should.equal(true);
    } else if (process.version.indexOf('v0.8.') === 0) {
      enable.let.should.equal(false);
    }
  });
});

@@ -235,40 +235,8 @@
 */%0A%0A
-var should = require('should');%0A
 var 
@@ -635,24 +635,60 @@
 nction () %7B%0A
+    enable.let.should.be.a.Boolean;%0A
     if (proc
@@ -767,103 +767,8 @@
 e);%0A
-    %7D else if (process.version.indexOf('v0.8.') === 0) %7B%0A      enable.let.should.equal(false);%0A
     

fix let test cases