I have several database tables that have data that is for display purposes only, it never changes. It takes a long time to load all the seed data. I am using cucumber which se
If you are using ActiveRecord
or DataMapper
you should be able to use the :transaction
strategy instead of :truncation
.
DatabaseCleaner.strategy = :transaction
Or as @traday points out, you can use an exclusion list with truncation.
DatabaseCleaner.strategy = :truncation, {:except => %w[widgets]}
The DatabaseCleaner docs are worth reading. Look in features/support/env.rb
for where this is typically set up with Cucumber.