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

Issue with truncation DB cleaner, while running feature capybara specs with JS #246

Closed
maxinspace opened this issue Apr 14, 2015 · 2 comments · Fixed by #257
Closed

Issue with truncation DB cleaner, while running feature capybara specs with JS #246

maxinspace opened this issue Apr 14, 2015 · 2 comments · Fixed by #257

Comments

@maxinspace
Copy link

Bumped into this issue while was testing form actions, based on AJAX with capybara feature specs.
Spec got frozen, and bin/ci couldn't pass.
Got this fixed in my PDP project - maxinspace/pdp-blog@032058b#diff-4d41f2688fb9abaa2897572d409789f3L1

Also, found an original issue DatabaseCleaner/database_cleaner#273

I guess, it needs some investigating, why it's happening, and how we should fix it.

@maxinspace
Copy link
Author

From what I've found:

Using an around hook ends up causing rspec to hang. Switching to a before and after hook works fine.
Seems like transaction can't be closed with around hook.

Shall we switch to before(:each) - after(:each) hooks?

@timurvafin
Copy link
Member

@MaximLarionov you could try

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

Successfully merging a pull request may close this issue.

2 participants