I upgraded to Rails 7 and Ruby 3.1. While trying to run tests with rspec
I got the error below. How can I fix it?
An error occurred while loading rails_helper.Failure/Error: require File.expand_path('../config/environment', __dir__)LoadError: cannot load such file -- net/smtp# .../gems/mail-2.7.1/lib/mail.rb:9:in `<module:Mail>'# .../gems/mail-2.7.1/lib/mail.rb:3:in `<main>'# .../bundler/gems/rails-6a0f6c4d70b1/actionmailbox/lib/action_mailbox/mail_ext.rb:3:in `<main>'# .../bundler/gems/rails-6a0f6c4d70b1/actionmailbox/lib/action_mailbox.rb:3:in `<main>'# .../bundler/gems/rails-6a0f6c4d70b1/actionmailbox/lib/action_mailbox/engine.rb:9:in `<main>'# ./config/application.rb:11:in `<top (required)>'# ./config/environment.rb:2:in `require_relative'# ./config/environment.rb:2:in `<top (required)>'# ./spec/rails_helper.rb:4:in `require'# ./spec/rails_helper.rb:4:in `<top (required)>'
(bootsnap and zeitwerk is excluded from backtrace)