jspec が優秀なスペックテストをできるので、ヘルパーを用意。 require と log 関数だけはよく使うので用意してあげます。require は配布時とテスト時の違いを吸収できるような変な書き方をしているけれど。Rhino だと load でJSを読み込めますが、require と互換性を保つために、readFile をして eval します。 // spec/couch-server-main.js sandbox = this; function require(name, parent){ // Application Context: // root should be vendor/crayon/ // name is a key without an extension. // // Test Context: // root should be . // name i