coffeescript + mocha で module のテスト

should = require "should"

describe "myModule", ->
  before ->
    @myModule = require "myModule"
  describe "#someFunction", ->
    it "is nice", ->
      @myModule.someFunction.should "be cool"

@ でテストの直前に module 読み込める