mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
As of Rails 5.1:
- Rails has built-in support for running tests within database
transactions, so Database Cleaner is no longer needed for this.
- Rails automatically shares the database connection across threads,
so transactional_capybara is no longer needed.
Changes:
- Enable `use_transactional_tests`.
- Remove transactional_capybara.
- Remove the Database Cleaner test wrapper.
This resolves:
- transactional_capybara mismanages the shared database connection,
causing the connection to falsely report as idle after the first
test. At 6 minutes (idle_timeout + reaping_frequency) into testing,
the connection is closed, causing e.g. `PG::ConnectionBad` errors.
|
||
|---|---|---|
| .. | ||
| base_controller_spec.rb | ||
| cfp_ability_spec.rb | ||
| code_of_conduct_spec.rb | ||
| commercials_spec.rb | ||
| conference_registration_spec.rb | ||
| conference_spec.rb | ||
| contact_spec.rb | ||
| difficulty_levels_spec.rb | ||
| email_spec.rb | ||
| event_types_spec.rb | ||
| info_desk_ability_spec.rb | ||
| lodgings_spec.rb | ||
| omniauth_spec.rb | ||
| organization_admin_ability_spec.rb | ||
| organization_spec.rb | ||
| organizer_ability_spec.rb | ||
| program_spec.rb | ||
| proposals_spec.rb | ||
| registration_periods_spec.rb | ||
| resource_spec.rb | ||
| roles_spec.rb | ||
| rooms_spec.rb | ||
| splashpage_spec.rb | ||
| sponsor_spec.rb | ||
| sponsorship_level_spec.rb | ||
| ticket_purchases_spec.rb | ||
| tickets_spec.rb | ||
| track_organizer_ability_spec.rb | ||
| tracks_spec.rb | ||
| user_ability_spec.rb | ||
| user_spec.rb | ||
| venues_spec.rb | ||
| versions_spec.rb | ||
| volunteers_spec.rb | ||