Search code examples
rubyautomated-testscucumbercapybara

Delete records Oracle before tests from Ruby, capybara and Cucumber. Please


does anyone have an example of how to remove the records from the table before starting or after finishing the tests?

My tests are working perfectly fine and all that remains is to automatically remove the records in the table. If anyone has an example link I would be very happy.


Solution

  • use the gem database_cleaner

    see: https://github.com/DatabaseCleaner/database_cleaner