Acceptance tests were flaky for some time due to possible race conditions.
I found out that Capybara shouldn't be used with integration test (ActionDispatch::IntegrationTest), therefore I replaced it with Capybara::Rails::TestCase.
http://blowmage.com/minitest-rails-capybara/
It looks like this recovered test suite - I've run it 10 times in for loop and no flaky error was raised.
Acceptance tests were flaky for some time due to possible race conditions.
I found out that Capybara shouldn't be used with integration test (
ActionDispatch::IntegrationTest
), therefore I replaced it withCapybara::Rails::TestCase
. http://blowmage.com/minitest-rails-capybara/It looks like this recovered test suite - I've run it 10 times in for loop and no flaky error was raised.