Rspec is using my development DB

后端 未结 5 934
心在旅途
心在旅途 2021-02-05 13:32

I\'m using Rspec for testing. However, it uses my development DB instead of my test DB. How can this occur?

I simply use rspec to run my tests: don:my_project_root

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-05 13:33

    I randomly had $DATABASE_URL defined in my .bashrc file to point directly to my development database. Took me a few hours to find that.

提交回复
热议问题