From 6c890a0f9e8574b750d4c7cb1e67186e77324091 Mon Sep 17 00:00:00 2001 From: Ynda Jas Date: Thu, 26 Sep 2024 10:41:18 +0100 Subject: [PATCH] Update database_cleaner-active_record We were getting the following error in `spec/support/database_cleaner.rb` ``` NoMethodError: undefined method `schema_migration' for an instance of ActiveRecord::ConnectionAdapters::PostgreSQLAdapter ``` Upgrading `database_cleaner-active_record` fixes this issue. Given that we appear to depend on this being up-to-date to successfully run the test suite, I've added this as a test dependency We did this on GDS recently: https://github.com/alphagov/transition/commit/ade2915b4962b159f4ef54b4b90fb3ba5685b54a --- Gemfile | 1 + Gemfile.lock | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index b042ac05..7c03851a 100644 --- a/Gemfile +++ b/Gemfile @@ -45,6 +45,7 @@ end group :test do gem "capybara", ">= 2.15" gem "database_cleaner" + gem "database_cleaner-active_record" gem "launchy" gem "selenium-webdriver" gem "simplecov" diff --git a/Gemfile.lock b/Gemfile.lock index 6a749388..5d055a5e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -120,7 +120,7 @@ GEM crass (1.0.6) database_cleaner (2.0.2) database_cleaner-active_record (>= 2, < 3) - database_cleaner-active_record (2.1.0) + database_cleaner-active_record (2.2.0) activerecord (>= 5.a) database_cleaner-core (~> 2.0.0) database_cleaner-core (2.0.1) @@ -389,6 +389,7 @@ GEM PLATFORMS arm64-darwin-22 arm64-darwin-23 + arm64-darwin-24 x86_64-darwin-21 x86_64-linux