closure_tree
closure_tree copied to clipboard
fix sqlite3 version
While execute spec with appraisal, I caught error.
An error occurred while loading ./spec/closure_tree/matcher_spec.rb. - Did you mean?
rspec ./spec/closure_tree/has_closure_tree_root_spec.rb
Failure/Error: ActiveRecord::Base.establish_connection
LoadError:
Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.4), already activated sqlite3-2.0.2-arm64-darwin. Make sure all dependencies are added to Gemfile.
# ./spec/spec_helper.rb:34:in `<top (required)>'
# ./spec/closure_tree/matcher_spec.rb:1:in `<top (required)>'
# ------------------
# --- Caused by: ---
# Gem::LoadError:
# can't activate sqlite3 (~> 1.4), already activated sqlite3-2.0.2-arm64-darwin. Make sure all dependencies are added to Gemfile.
# ./spec/spec_helper.rb:34:in `<top (required)>'
sqlite3 v2 is supported by only rails 7.2 or above
ref: https://github.com/rails/rails/commit/fd1c635d2f1