const _ = require('lodash/fp')
const fs = require('fs')
const dsl = require('./dsl')
const vm = require('vm')

module.exports = function (file) {
  return vm.runInNewContext(fs.readFileSync(file),
                            _.assign(dsl, { module }),
                            { filename: file })
}

const fs = require('fs')
const dsl = require('./dsl')
const vm = require('vm')

module.exports = function (file) {
  return vm.runInNewContext(fs.readFileSync(file),
                            Object.assign({ module, require }, global, dsl),
                            { filename: file })
}

Fix missing globals in PureSpec modules
Fix missing globals in PureSpec modules
