0b02dce15f
Follow-up to #47516 / #47492. When running generator tests on `arm64` platforms, there is an extra `lock --add-platform` command in `@bundle_commands` which causes `assert_match %r"^exec rails ...", @bundle_commands[2]` to fail. However, `run_generator_using_prerelease` isn't really concerned with `lock --add-platform` commands; it is only concerned with the `install` and `exec rails` commands, and the contents of the `Gemfile` when those commands were executed. Therefore, this commit removes `lock --add-platform` command-related assertions from `run_generator_using_prerelease` and puts them into a dedicated `test_generation_runs_bundle_lock_for_linux` test. This approach makes `run_generator_using_prerelease` less brittle. This change also fixes a technically incorrect assertion wherein the contents of the `Gemfile` during the `lock --add-platform` command was checked instead of the contents during the `exec rails` command. Fixes #50168. Co-authored-by: zzak <zzakscott@gmail.com> |
||
---|---|---|
.. | ||
bin | ||
exe | ||
lib | ||
test | ||
.gitignore | ||
CHANGELOG.md | ||
MIT-LICENSE | ||
railties.gemspec | ||
Rakefile | ||
RDOC_MAIN.md | ||
README.rdoc |
= Railties -- Gluing the Engine to the \Rails Railties is responsible for gluing all frameworks together. Overall, it: * handles the bootstrapping process for a \Rails application; * manages the +rails+ command line interface; * and provides the \Rails generators core. == Download The latest version of Railties can be installed with RubyGems: * gem install railties Source code can be downloaded as part of the \Rails project on GitHub * https://github.com/rails/rails/tree/main/railties == License Railties is released under the MIT license: * https://opensource.org/licenses/MIT == Support API documentation is at * https://api.rubyonrails.org Bug reports can be filed for the Ruby on \Rails project here: * https://github.com/rails/rails/issues Feature requests should be discussed on the rails-core mailing list here: * https://discuss.rubyonrails.org/c/rubyonrails-core