Running tests breaks the dev environment

(Loic Dachary) #1


After setting up the vagrant dev environment I’m able to use http://localhost:4000 and it works fine. I can create polls and vote on them. However, when I run

RAILS_ENV=test bundle exec rake db:migrate
RAILS_ENV=test bundle exec rake plugin:spec poll

it succeeds but the poll no longer work in the dev environment, when I try to create and use them manually via http://localhost:4000. As if some leftovers interfered.

What am I doing wrong ?