Database Cleaner not working in minitest rails

后端 未结 5 621
慢半拍i
慢半拍i 2021-01-02 14:48

My Minitest controller tests are working fine if I run them alone using rake minitest:controllers but when I run rake minitest:all then I get valid

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 15:06

    I found my mistake ,may be it helps someone else ..

    I should write DatabaseCleaner.start in setup of every model test where setup is defined, as i am overwriting setup method in every test file.

提交回复
热议问题