Draft: Introduce next-rails to run Rails 7.1 tests
What does this MR do and why?
next_rails
gem allows having two different Rails versions for a project simultaneously. It supports specifying two Gemfiles: Gemfile
and Gemfile.next
.
It also introduces NextRails.next?
helper to execute the code based on the version that is used. It allows to have a single codebase for two different Rails versions.
Similar to Draft: Introduce next-rails to run Rails 7 tests (!160895), but this MR specifies BUNDLE_GEMFILE: "Gemfile.next"
to install gems for Rails 7.1 version.