Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ericbock on github.
  • I am ericbock (https://keybase.io/ericbock) on keybase.
  • I have a public key ASA8DJwewayrJaSYTW-yLZTZlSY4IFnLZP-twZdPGRdiEwo

To claim this, I am signing this object:

@ericbock
ericbock / gist:1451789
Created December 9, 2011 14:44
using sinon to stub a method
sinon = require 'sinon'
should = require 'should'
class LaserGun
fireAt: (alien) ->
console.log "ZAP"
class BuckRogers
constructor: (@laserGun) ->
attack: (alien) ->