casperjsのtestが通らない。
今、casperjsを公式docの通り、testすると、うまく動かない。
FAIL TypeError: 'undefined' is not a function (evaluating 'casper.test.begin') # type: uncaughtError # error: "TypeError: 'undefined' is not a function (evaluating 'casper.test.begin')" TypeError: 'undefined' is not a function (evaluating 'casper.test.begin')
なんかと思ったら、brewで普通に入れるstableの1.0系は、
test周りのmoduleが開発版の1.1と違うらしい。
公式docも開発版ベース(?)っぽい。とにかく、upgradeしろという事。
$ brew uninstall casperjs $ brew install casperjs --devel
これで、1.1入る。
テストも通った。