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 3.5 + factory_girl-preload are not rolling back on each test #24

Open
gustavowt opened this issue Nov 10, 2016 · 0 comments
Open

Comments

@gustavowt
Copy link

Hy guys,

I'm trying to configure the RSpec 3.5 and factory_girl-preload 2.3.1 on Rails 5 as a usually do since Rails 2.

I just realized that something has changed on RSpec 3.5 regarding the option use_transactional_fixtures I've noticed that they are not using savepoint anymore, but are using begin/commit transactions. The problems is that, as I'm using a shared connection, every time that I change something on the database it runs a new begin/commit transaction and I'm suspecting that the rollback is not working for this case, because I'm getting some preloaded factories with different data when I run the whole suite, and the tests are running fine when I run a single suite.

Hope you guys could help here, not sure if this must be fixed on this gem or we must report this problem on the RSpec issues.

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