Skip to content

Instantly share code, notes, and snippets.

@maxbeatty
Created December 24, 2013 02:19
Show Gist options
  • Save maxbeatty/8107929 to your computer and use it in GitHub Desktop.
Save maxbeatty/8107929 to your computer and use it in GitHub Desktop.
assert = require 'assert'
driver = require '../../src/driver'
describe 'driver', ->
it 'should have drive as skill', ->
assert.equal driver.data.skill, "Drive", "skill not set"
driver = require './driver'
console.log driver.data
driver = require './person'
driver.setSkill "Drive"
module.exports = driver
module.exports =
data:
name: 'Test'
skill: 'test'
setSkill: (skill) ->
@data.skill = skill
@maxbeatty
Copy link
Author

$ ./node_modules/mocha/bin/mocha --compilers coffee:coffee-script --reporter spec ./test/unit/*-test.coffee 


  driver
    ✓ should have drive as skill 


  1 passing (3ms)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment