エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
DatabaseCleanerでテストデータをロールバックする - Qiita
before :suite do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation, ... before :suite do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation, only: %w|hoge piyo fuga|) end before :each do DatabaseCleaner.start @hoge = FactoryGirl.create(:hoge) @piyo = FactoryGirl.create(:piyo) @fuga = FactoryGirl.create(:fuga) end after :each do DatabaseCleaner.clean end Register as a new user and use Qiita more conveniently You get articles that match your
2014/09/14 リンク