Configures tests to minimize flackyness

Reference: https://bibwild.wordpress.com/2016/02/18/struggling-towards-reliable-capybara-javascript-testing/

The only thing I did not do was removing the random order in the tests.
This commit is contained in:
kikito
2016-02-24 11:37:07 +01:00
parent 171c4dde13
commit eda47effc4
3 changed files with 44 additions and 4 deletions

View File

@@ -19,6 +19,9 @@ ActiveRecord::Migration.maintain_test_schema!
RSpec.configure do |config|
config.infer_spec_type_from_file_location!
config.after :each do
Warden.test_reset!
end
end
Capybara.javascript_driver = :poltergeist