/*global describe, it */
'use strict';

var assert = require('assert');
var executable = require('../');
var path = require('path');

describe('executable()', function () {
    it('should be executable', function (cb) {
        var file = path.join(__dirname, 'fixtures/optipng');
        executable(file, function (err, exec) {
            cb(assert.equal(exec, true));
        });
    });

    it('should not be executable', function (cb) {
        var file = path.join(__dirname, '../index.js');
        executable(file, function (err, exec) {
            cb(assert.equal(exec, false));
        });
    });
});

@@ -181,18 +181,20 @@
 'should 
-be
+test
  executa
@@ -188,32 +188,48 @@
  test executable
+ and return true
 ', function (cb)
@@ -288,24 +288,25 @@
 /optipng');%0A
+%0A
         exec
@@ -423,14 +423,12 @@
 uld 
-not be
+test
  exe
@@ -434,16 +434,46 @@
 ecutable
+ synchronously and return true
 ', funct
@@ -528,81 +528,37 @@
 e, '
-../index.js');%0A        executable(file, function (err, exec) %7B%0A  
+fixtures/optipng');%0A%0A
         
   cb
@@ -545,34 +545,32 @@
 png');%0A%0A        
-  
 cb(assert.equal(
@@ -577,28 +577,32 @@
 exec
-, false));%0A        %7D
+utable.sync(file), true)
 );%0A 

Fix tests