closure_tree icon indicating copy to clipboard operation
closure_tree copied to clipboard

fix sqlite3 version

Open kakubin opened this issue 1 year ago • 0 comments

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

kakubin avatar Jul 29 '24 12:07 kakubin