activerecord4-redshift-adapter
activerecord4-redshift-adapter copied to clipboard
RSpec does not work
Current implementation does not work with RSpec, because of fixture cleaning issue. database_cleaner does not work, too. Avoiding SAVEPOINT may resolve this problem.
Error message from ActiveRecord:
ActiveRecord::StatementInvalid:
PG::Error: ERROR: SQL command "SAVEPOINT active_record_1" not supported.
: SAVEPOINT active_record_1
It seems that ActiveRecord utilize nested save points, we cannot avoid SAVEPOINT... database_cleaner (with truncation scheme) is the last resort.