database_cleaner
database_cleaner copied to clipboard
Strategies for cleaning databases in Ruby. Can be used to ensure a clean state for testing.
Would it be possible to have a rethinkdb support, and would it be possible to achieve it with the current database cleaner?
Is there any reason `pre_count` isn't included in the documentation? It does appear in the error message when trying to pass an unavailable parameter as an option to :truncate. (BTW...
Under "[What strategy is fastest?](https://github.com/DatabaseCleaner/database_cleaner/blob/v1.8.5/README.markdown#what-strategy-is-fastest)", the README says: > If you are using ActiveRecord then take a look at the [additional options](https://github.com/DatabaseCleaner/database_cleaner/blob/v1.8.5/README.markdown#additional-activerecord-options-for-truncation) available for :truncation. However, there is no "Additional...
I recently switched our config from transactional to truncation strategy as shown in the Rspec + Capybara example in Readme. However, this seems to affect the data created in the...
My team recently came across a really nasty issue where `spring` kept our `ActiveRecord::Base.connection_config` cached. In that case, the current ENV var based safeguards failed us (luckily nobody was seriously...
So, I have some tests that need truncation because I am testing the whole Sidekiq stack and as a separate process Sidekiq needs to be able to see the records...
Hi! Since database_cleaner is moving away from putting all adapters in `adapters` folder. I was wondering how to contribute new adapters? I guess would be a good idea to add...
Hi there, I think this can be a good issue for a first-time contributor. It would be great if we can increase documentation for the DatabaseCleaner::Configuration API: https://github.com/DatabaseCleaner/database_cleaner/blob/master/lib/database_cleaner/configuration.rb#L56-L72 Even though...
Way back in 2012, 016d66c4c9621fceadbebeb80feb5744d810c681 changed the `::[]` API to act as both a command and query, in a decision based on pragmatism. At the time, @bmabey noted his dislike...
It appears that DatabaseCleaner does not currently support a getter method for determining which strategy it currently employs: ```ruby >> DatabaseCleaner.strategy NoMethodError: undefined method `strategy' for DatabaseCleaner:Module Did you mean?...