2

Testing one of the web app using capybara and learnt a lot about how to write test cases. Wanted to know if there is any such way to load the seeds data before the start of each test case.

I have tried writing

Rails.application.load_seed

inside my './features/support/env.rb' but no luck. Any expert out there?

Hemant Bhargava
  • 3,251
  • 4
  • 24
  • 45
  • 1
    Possible duplicate of [Auto-load the seed data from db/seeds.rb with rake](https://stackoverflow.com/questions/8386604/auto-load-the-seed-data-from-db-seeds-rb-with-rake) – fabdurso Jun 02 '17 at 10:58

0 Answers0