I am currently using cucumber and databasecleaner to test my application.
And currently in my env.rb
i have the setup of the cleaner as:
DatabaseCleaner.strategy = :truncation, {:except => %w[TABLE]}
After do
DatabaseCleaner.clean
end
This way I can keep the data in TABLE
.
But I would also like to keep a single entry in a different table between tests. Is there any way I can achieve that or do I have to recreate it all the time with a Before
hook?