factory_girl + rspec doesn't seem to roll back changes after each example

前端 未结 7 2082
暗喜
暗喜 2021-02-07 05:39

Similar to the problem described here: http://rpheath.com/posts/411-how-to-use-factory-girl-with-rspec

in Short (shorten\'d code):

spec_helper:

c         


        
7条回答
  •  悲哀的现实
    2021-02-07 06:39

    I have had similar questions about what sort of starting state one can expect when using FG and RSpec.

    While I too wait for clarity, Database Cleaner could be a good fix: http://rubydoc.info/gems/database_cleaner/0.6.7/frames hth - Perry

提交回复
热议问题