I searched and tried a lot, but did not find my answer. I have some feature files for my project written in gherkin (in a rails project). All steps are defined and the features themselves run pretty good if I start them each single. That I can run all scenarios together with cucumber I need to perform rake db:drop db:create db:migrate db:seed before each scenario. I tried exec 'rake db:drop db:create db:migrate db:seed' in a begin function in the env.rb and I tried the same in a backgound step in the features. The command is executed but after that cucumber stops and the scenarios are not executed. How can I use this so?
Thanks for your help!
Have you looked into the Database Cleaner gem? It might help you out with this.