-
Notifications
You must be signed in to change notification settings - Fork 9
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
Transactional fixtures break database access in test #13
Comments
It should be documented anyway. There is also a hack for shared connection: https://gist.github.com/470808 |
My point is that unless we have some big future plans for Mentioning |
We could provide module What do you think? |
@jdudek - There are many DatabaseCleaner strategies I do not feel comfortable with choosing one of them for ppl. I like the idea in case it is possible for people to somehow change the strategy after |
By default Bbq tests run with
use_transactional_fixtures = true
. Accessing database within test case will run in a transaction, separate from application server (at least when running Selenium). As a result, changes made by test won't be visible to the application.Although direct access to the database is discouraged in acceptance tests, sometimes it's very useful and not harmful. Creating admin user account might be a good example.
Possible solutions include
use_transactional_fixtures = false
inside Bbq::TestCaseThe text was updated successfully, but these errors were encountered: