Skip to content

CI tests are failing on test runs in Rails 6.1.3.1 & Ruby 3 #1223

@edwinthinks

Description

@edwinthinks

Steps to reproduce

  1. Run the CI suite on any changes after the release of Ruby 3.1.0
  2. You should see failures on matrix build test(6.1.3.1, 3) due to this error when trying to run the tests/home/runner/work/view_component/view_component/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.3.1/lib/active_support/dependencies.rb:332:in require': cannot load such file -- net/smtp (LoadError)`

This is related to the issue described on the stakeoverflow post - https://stackoverflow.com/questions/70500220/rails-7-ruby-3-1-loaderror-cannot-load-such-file-net-smtp

This might get fixed when mikel/mail#1439 is merged in. But I'am not 100% sure.

Expected behavior

The test suite should run without running into a dependency error as shown above. Moreover, I would expect test(6.1.3.1, 3) to be testing against ruby 3 not 3.1.0

Actual behavior

Tests fail to run on test(6.1.3.1, 3)

System configuration

Rails version:
Rails 6.1.3.1

Ruby version:
3.1.0

Gem version:
main

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions