quattro_4 scribble

scribble 落書き (調べた事をただ落書きする)

thoughtbot podcast Episode #3 ★

thoughtbot Learn Episode #3 The FactoryGirl Representation of a Factory

Josh Clayton, the maintainer of FactoryGirl, and a developer at thoughtbot

主にFactoryGirlの話

railsは2006から

factory girl
metaprogramming

難しい点
association

trait

0 issuesとか言ってたけど
issue少なくて、さばき具合がすごい

not so good maintain
identity map

js unit test
jasmine
evergreen jnicklas/evergreen · GitHub

unit testの場合dbに保存する必要ない
fixture使っても良い
build_stubs!は速い

rails upgradeの判断について
コストかかる(2 developers one month)
mongoid, rails, rspec, cucumber, capybaraを対応 (nightmare)

capybaraのテストは
execute_scriptを使うのは出来るだけ避けないといけない