Why isn't factory_girl operating transactionally for me? - rows remain in database after tests

前端 未结 5 1762
挽巷
挽巷 2020-12-24 12:04

I\'m trying to use factory_girl to create a \"user\" factory (with RSpec) however it doesn\'t seem to be operating transactionally and is apparently failing because of remna

5条回答
  •  温柔的废话
    2020-12-24 12:25

    I ran into these same symptoms when upgrading a project from Rails 3 to Rails 4. I had done a bundle install, and development mode seemed to be working fine, but I wouldn't get transactional behavior in tests. It turns out doing a bundle update solved the problem.

提交回复
热议问题