My issue seems to be very similar to: rspec test passes in isolation, but fails when run with other tests - but the accepted answer is something I'm already doing: I'm using avdi's database cleaner setup (and I've tried deletion instead of truncation like thoughtbot uses in their suspenders example app): http://devblog.avdi.org/2012/08/31/configuring-database_cleaner-with-rails-rspec-capybara-and-selenium/
So the account record from this code:
let(:account) { create(:account) }
seems to be being deleted. I'm hitting a page not found because the account doesn't exist. So switching back and forth between the different database cleaner strategies seems to be causing the issue?
I can literally run rspec --only-failures and all my tests that just failed will pass. Its only happening with feature/capybara specs.
EDIT: Here's my config: https://gist.github.com/gregblass/b886f79b0d8e2e2015af
UPDATE: Here are some examples of failing tests: https://gist.github.com/gregblass/1b878d92a2b9dad355e0
UPDATE 2: It happening after I do a js: true test. Something with those are screwing up my other non-js capybara tests that follow it.