Skip to content

Commit

Permalink
Update database_cleaner-active_record
Browse files Browse the repository at this point in the history
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: alphagov/transition@ade2915
  • Loading branch information
yndajas committed Sep 26, 2024
1 parent 2aa62b4 commit 3412d3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -389,6 +389,7 @@ GEM
PLATFORMS
arm64-darwin-22
arm64-darwin-23
arm64-darwin-24
x86_64-darwin-21
x86_64-linux

Expand All @@ -403,6 +404,7 @@ DEPENDENCIES
climate_control
coffee-rails (~> 5.0)
database_cleaner
database_cleaner-active_record
dotenv-rails
factory_bot_rails
faker
Expand Down

0 comments on commit 3412d3e

Please sign in to comment.