var path = require('path');
var childProcess = require('child_process');

function gulp(task) {
  return childProcess.execSync([
    'node_modules/.bin/gulp',
    '--gulpfile', path.resolve(__dirname, 'fixtures', 'gulpfile.js'),
    task
  ].join(' '), {encoding: 'utf8'});
}

describe('gulp-jasmine-browser', function() {
  it('works', function() {
    expect(gulp('dummy')).toContain('2 specs, 1 failure');
  });
});

var path = require('path');
var childProcess = require('child_process');

function gulp(task, callback) {
  return childProcess.exec([
    'node_modules/.bin/gulp',
    '--gulpfile', path.resolve(__dirname, 'fixtures', 'gulpfile.js'),
    task
  ].join(' '), {encoding: 'utf8'}, callback);
}

describe('gulp-jasmine-browser', function() {
  it('works', function(done) {
    gulp('dummy', function(error, stdout) {
      expect(stdout).toContain('2 specs, 1 failure');
      done();
    });
  });
});

Stop using execSync for compatibility with Node 0.10
Stop using execSync for compatibility with Node 0.10

Signed-off-by: Nicole Sullivan <4ab7e2960369063855aad4ef791fa27066322d72@pivotal.io>
