You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here one is initiating an array, which in my case is empty, as I'm not setting the option (anyways, there are no tables in a key-value store). Anyway, look at the following code:
Here one sets the condition on the @tables_to_exclude variable directly. This will always be true, as the variable is not nil (empty array is not a negative condition).
The text was updated successfully, but these errors were encountered:
I have tried DatabaseCleaner/database_cleaner#276 DatabaseCleaner/database_cleaner#277 , but they were not working. Ohm.redis.call('FLUSHDB') is working for me.
I have truncation strategy set (also clean_with(:truncation)). Nothing is being cleaned. I think this is a bug. See:
https://github.com/DatabaseCleaner/database_cleaner/blob/master/lib/database_cleaner/generic/truncation.rb#L13
Here one is initiating an array, which in my case is empty, as I'm not setting the option (anyways, there are no tables in a key-value store). Anyway, look at the following code:
https://github.com/DatabaseCleaner/database_cleaner/blob/master/lib/database_cleaner/redis/truncation.rb#L15
Here one sets the condition on the
@tables_to_exclude
variable directly. This will always be true, as the variable is not nil (empty array is not a negative condition).The text was updated successfully, but these errors were encountered: