Ask A Question

Notifications

You’re not receiving notifications from this thread.

How to Test Gem Dependencies with Appraisal Discussion

Thanks Chris, I actually can use this for making futurism future-proof πŸ˜…

The only thing I see is (and I'm using the exact same setup you do in that video), that appraisal fails to correctly load the sqlite3 gem, because apparently ActiveRecord 5.2 and 6.0 have different dependencies:

https://github.com/rails/rails/blob/v5.2.2/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L12

Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.2. Make sure all dependencies are added to Gemfile. (Gem::LoadError)

Have you seen this and/or have any idea how to fix it?

Reply

Silly me... added it to my Appraisals file:

appraise "rails-6-0" do
gem "rails", "~> 6.0"
gem "sqlite3", "~> 1.4"
end

appraise "rails-5-2" do
gem "rails", "~> 5.2"
gem "sqlite3", "~> 1.3", "< 1.4"
end

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,563+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.