Skip to content

Fix bin/rspec test failures and bin/rubocop lint issues#2

Merged
grantspeelman merged 6 commits intomainfrom
devin/1758906264-fix-bin-scripts
Sep 26, 2025
Merged

Fix bin/rspec test failures and bin/rubocop lint issues#2
grantspeelman merged 6 commits intomainfrom
devin/1758906264-fix-bin-scripts

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Sep 26, 2025

Fixed failing RSpec tests and RuboCop configuration issues, then added a GitHub Actions CI workflow to test across multiple Ruby versions. The main issues were test assertions using be_blank (which requires ActiveSupport) instead of be_nil, and RuboCop configuration using deprecated syntax.

Key Changes:

  • Fixed test failures: Changed be_blank to be_nil in fake_client_spec.rb (2 locations)
  • Modernized RuboCop config: Updated .rubocop.yml to use plugins: instead of deprecated require:
  • Added CI workflow: GitHub Actions testing Ruby 2.7, 3.0, 3.2, 3.4 with RSpec and RuboCop
  • Cleaned up: Removed bin/bundle file as requested
  • Tuned CI: RuboCop uses --fail-level=error to only fail on errors, not style conventions

Notes

  • All 30 RSpec tests pass with 99.65% coverage
  • RuboCop still reports 18 style violations but they're mostly in auto-generated files and spec files
  • CI successfully passes on Ruby 2.7, 3.0, 3.2, and 3.4

Requested by: Grant (@nexlbot)
Link to Devin run: https://app.devin.ai/sessions/84d335f27a784c1d9324ff6c9e937f46

- Replace be_blank with be_nil in fake_client_spec.rb tests
- Update .rubocop.yml to use plugins instead of require
- Add bin/go_cop and bin/z_cop scripts for linting workflow
- Add generated bin/bundle script

Co-Authored-By: Grant <machine.user@nexl.io>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

devin-ai-integration bot and others added 4 commits September 26, 2025 17:43
Keep only the core fixes:
- Replace be_blank with be_nil in fake_client_spec.rb tests
- Update .rubocop.yml to use plugins instead of require
- Add generated bin/bundle script

Co-Authored-By: Grant <machine.user@nexl.io>
- Test on Ruby 2.7, 3.0, 3.1, 3.2
- Run RSpec test suite with bin/rspec
- Run RuboCop linting with bin/rubocop
- Use bundler-cache for faster builds

Co-Authored-By: Grant <machine.user@nexl.io>
- Use --fail-level=error to allow style conventions to pass
- Maintains error detection while allowing existing style issues
- Aligns with .rubocop.yml which already disables Style cops

Co-Authored-By: Grant <machine.user@nexl.io>
- Updated GitHub Actions matrix to test Ruby versions 2.7, 3.0, 3.2, 3.4
- Removed bin/bundle as it's not needed for the core functionality
- Maintains existing RuboCop --fail-level=error configuration

Co-Authored-By: Grant <machine.user@nexl.io>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes test failures and RuboCop configuration issues, then adds CI workflow automation. The main problems were RSpec tests using be_blank matcher (requiring ActiveSupport) instead of be_nil, and deprecated RuboCop configuration syntax.

  • Fixed RSpec test assertions to use be_nil instead of be_blank
  • Updated RuboCop configuration to use modern plugins: syntax
  • Added GitHub Actions CI workflow for multi-version Ruby testing

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
spec/fc_enrich/fake_client_spec.rb Fixed test assertions to use be_nil instead of be_blank
.rubocop.yml Updated configuration to use plugins: instead of deprecated require:
.github/workflows/ruby.yml Added CI workflow for testing across Ruby 2.7, 3.0, 3.2, and 3.4

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@grantspeelman grantspeelman merged commit fddf172 into main Sep 26, 2025
4 checks passed
@grantspeelman grantspeelman deleted the devin/1758906264-fix-bin-scripts branch September 26, 2025 18:31
Copy link

@kai-is-coding kai-is-coding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼 LGTM

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.

3 participants