NSScreencast Episode #77 TDD Money with Specta and Expecta
TDD Money with Specta and Expecta - NSScreencast
Dollar, EuroなどMoneyのclassでTDD
- book Test Driven Devvelopment - Kent Beck
- testing framework
- kiwi
- specta (rspec like syntax)
- expecta (matchers)
- target "XxxTests" do
- pod specta
- pod expecta
- pod install
- fail
- XxxTests build settings > buildpath > inherited
- fail
- create file
- XxxTests.m
- delete .h file
- #import specta.h
- #import expecta.h
- define EXP_SHORTHAND
- XxxTests.m
- SpecBegin
- describe
- expect().to.equal
- expecta box化 integer type
- create actual class
- visible from Xxx XxxTests
- XCode refactoring
- Money
- Move up
- extract methods to superclass
- Xcode 4 移行ガイド:テキストの置換とリファクタリング
TDDの手法自体は新しく学ぶことはあまりなかった
video持ってた 見てないけど The Pragmatic Bookshelf | Test Driven Development