lib/generators/cypress_dev/templates/spec/cypress/app_commands/clean.rb in cypress-on-rails-1.0.1 vs lib/generators/cypress_dev/templates/spec/cypress/app_commands/clean.rb in cypress-on-rails-1.1.0
- old
+ new
@@ -2,6 +2,7 @@
# cleaning the database using database_cleaner
DatabaseCleaner.strategy = :truncation
DatabaseCleaner.clean
else
logger.warn "add database_cleaner or update clean_db"
+ Post.delete_all if defined?(Post)
end