FactoryGirlでafter_createなどのcallbackをスキップする方法

ryonknryonkn のブックマーク 2014/02/12 11:23

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Skip callbacks on Factory Girl and Rspec

    I'm testing a model with an after create callback that I'd like to run only on some occasions while testing. How can I skip/run callbacks from a factory? class User < ActiveRecord::Base after_creat...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう