osem-fcy/spec
Andrew Kvalheim c3e02c20b9
Use Rails transactional tests
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.
2021-03-06 19:41:06 +01:00
..
ability Drop knapsack 2018-09-20 00:56:17 +02:00
controllers Remove travel schedule from registration 2021-03-06 04:09:02 +01:00
datatables Skip some failing specs... 2021-03-06 02:41:07 +01:00
factories Create a factory for organizer 2019-03-18 23:16:15 +01:00
features Use Rails transactional tests 2021-03-06 19:41:06 +01:00
helpers DRY up bootstrapSwitches with default values 2018-06-26 07:10:08 -07:00
mailers Rubocop autocorrections 2018-11-16 09:06:05 -08:00
models Linters gonna lint 2021-03-06 19:09:38 +01:00
pdfs test for missing logo 2018-12-19 12:30:45 -08:00
routing Add frozen_string_literal magic comment 2018-05-09 06:54:26 -07:00
serializers Adapt serializer specs to the new format 2018-11-20 17:30:56 -08:00
support Use Rails transactional tests 2021-03-06 19:41:06 +01:00
views/layouts Provide an opportunity for including conference-specific CSS 2018-11-06 08:19:01 -08:00
spec_helper.rb Use Rails transactional tests 2021-03-06 19:41:06 +01:00