Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add brakeman as development dependency #50520

Merged
merged 1 commit into from
Jan 1, 2024

Conversation

jonathanhefner
Copy link
Member

Follow-up to #50507.

Since brakeman is now included in generated apps by default, it must be installed before running Rails tests that invoke bin/rails for generated apps.

This fixes CI failures such as:

Error:
AppGeneratorTest#test_app_update_does_not_change_app_name_when_app_name_is_hyphenated_name:
RuntimeError: Command failed with exit 1: yes | bin/rails app:update
    test/generators/app_generator_test.rb:1304:in `system'
    test/generators/app_generator_test.rb:1304:in `block (2 levels) in run_app_update'
    test/generators/app_generator_test.rb:1304:in `block in run_app_update'
    test/generators/app_generator_test.rb:1299:in `chdir'
    test/generators/app_generator_test.rb:1299:in `run_app_update'
    test/generators/app_generator_test.rb:430:in `test_app_update_does_not_change_app_name_when_app_name_is_hyphenated_name'

Follow-up to rails#50507.

Since `brakeman` is now included in generated apps by default, it must
be installed before running Rails tests that invoke `bin/rails` for
generated apps.

This fixes CI failures such as:

  ```
  Error:
  AppGeneratorTest#test_app_update_does_not_change_app_name_when_app_name_is_hyphenated_name:
  RuntimeError: Command failed with exit 1: yes | bin/rails app:update
      test/generators/app_generator_test.rb:1304:in `system'
      test/generators/app_generator_test.rb:1304:in `block (2 levels) in run_app_update'
      test/generators/app_generator_test.rb:1304:in `block in run_app_update'
      test/generators/app_generator_test.rb:1299:in `chdir'
      test/generators/app_generator_test.rb:1299:in `run_app_update'
      test/generators/app_generator_test.rb:430:in `test_app_update_does_not_change_app_name_when_app_name_is_hyphenated_name'
  ```
@jonathanhefner jonathanhefner merged commit 3f4f46a into rails:main Jan 1, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant