About Cacher
Web App
Download
Sign In
Sign Up
menu
Cacher is the code snippet organizer for pro developers
We empower you and your team to get more done, faster
Learn More
shimgo
1/22/2017 - 12:06 PM
share
Share
add_circle_outline
Save
テストでファクトリを使うことについて
テストでファクトリを使うことについて
about_test_with_factory.md
content_copy
file_download
Rendered
Source
ファクトリを使うメリット
データの再利用性
記述量が少ない?
ActiveRecordを使うためバリデーションがかかる(標準のフィクスチャではかからない)
デメリット
実行速度が遅い
複雑な関連を持つデータの扱いが面倒
テストデータに変更があった場合に影響が大きくなるのでは?
clear