Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSpec does not work #1

Open
aamine opened this issue Aug 7, 2013 · 1 comment
Open

RSpec does not work #1

aamine opened this issue Aug 7, 2013 · 1 comment
Assignees

Comments

@aamine
Copy link
Owner

aamine commented Aug 7, 2013

Current implementation does not work with RSpec, because of fixture cleaning issue.
database_cleaner does not work, too.
Avoiding SAVEPOINT may resolve this problem.

@ghost ghost assigned aamine Aug 7, 2013
@aamine
Copy link
Owner Author

aamine commented Aug 7, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant