Skip to content

Commit

Permalink
Fix CI (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryTsepelev committed Mar 3, 2024
1 parent e2ba902 commit 4dc52a2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ end

appraise "railsmaster" do
gem "rails", github: "rails/rails", branch: "main"
gem "sqlite3", "~> 1.6.8"
gem "sqlite3", "~> 1.7.2"
end
2 changes: 1 addition & 1 deletion gemfiles/railsmaster.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

gem "sqlite3", "~> 1.6.8"
gem "sqlite3", "~> 1.7.2"
gem "rails", branch: "main", git: "https://github.com/rails/rails.git"

gemspec path: "../"
9 changes: 9 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@
config.formatter = :documentation
config.color = true

# trick to handle moved method; can be dropped later
DatabaseCleaner::ActiveRecord::Base.singleton_class.prepend(Module.new do
def migration_table_name
return super if ::ActiveRecord.version != Gem::Version.new("7.2.0.alpha")

::ActiveRecord::Base.connection_pool.schema_migration
end
end)

config.before(:suite) do
if ActiveRecord::Base.connection.respond_to?(:materialize_transactions)
ActiveRecord::Base.connection.disable_lazy_transactions!
Expand Down

0 comments on commit 4dc52a2

Please sign in to comment.