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

前端 未结 7 2079
暗喜
暗喜 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:19

    Some more possible causes:

    • There's still a states.yml fixture sitting around
    • Someone played around on script/console test and forgot to clean up afterwards.

提交回复
热议问题