osem-fcy/spec/support
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
..
logos Give a bit more demo info in the conference description 2016-05-03 16:25:39 +02:00
schemas Adapt serializer specs to the new format 2018-11-20 17:30:56 -08:00
api_schema_matcher.rb Add frozen_string_literal magic comment 2018-05-09 06:54:26 -07:00
database_cleaner.rb Use Rails transactional tests 2021-03-06 19:41:06 +01:00
external_request.rb Rubocop autocorrections 2018-11-16 09:06:05 -08:00
factory_bot.rb Update FactoryBot strings & urls 2018-09-06 00:42:28 +02:00
flash.rb Rubocop autocorrections 2018-11-16 09:06:05 -08:00
login_macros.rb Add frozen_string_literal magic comment 2018-05-09 06:54:26 -07:00
omniauth_macros.rb Rubocop autocorrections 2018-11-16 09:06:05 -08:00
save_feature_failures.rb Store screenshot when feature test fails 2019-03-15 22:13:40 +01:00
sidebar.rb Add frozen_string_literal magic comment 2018-05-09 06:54:26 -07:00