Skip to content

Conversation

@justinhoward
Copy link
Member

The honeybadger spec was failing on Ruby 2.3 because the honeybadger gem isn't compatible with Ruby 2.3 even though it claims to be.

Specs with Redis 5 were failing because of a slight modification of the error message.

@justinhoward justinhoward force-pushed the update-specs-for-updated-gems branch 2 times, most recently from 98cbcc2 to 735ff6b Compare March 12, 2025 15:27
The honeybadger spec was failing on Ruby 2.3 because the honeybadger
gem isn't compatible with Ruby 2.3 even though it claims to be.

Specs with Redis 5 were failing because of a slight modification of the
error message.
@justinhoward justinhoward force-pushed the update-specs-for-updated-gems branch from 735ff6b to c15bf2c Compare March 12, 2025 15:31
@justinhoward justinhoward requested a review from Copilot March 12, 2025 15:37
Copy link

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 minor spec failures caused by gem compatibility issues by conditionally loading dependencies and updating error message expectations.

  • Honeybadger specs are now skipped for Ruby versions below 2.4 and load the gem within a before hook.
  • The Gemfile conditionally installs honeybadger based on the Ruby version.
  • A require statement for logger is added in log_listener_spec, and the redis_spec test now uses a regex to loosely match the updated error message.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
spec/events/honeybadger_listener_spec.rb Skip and require honeybadger conditionally based on Ruby version compatibility.
Gemfile Conditionally include the honeybadger gem for Ruby >= 2.4 to resolve incompatibility.
spec/events/log_listener_spec.rb Added require statement for logger to support logger-based tests.
spec/patch/redis_spec.rb Updated error message expectation to use regex for flexibility with updated messages.

@justinhoward justinhoward merged commit b3921b3 into master Mar 12, 2025
17 checks passed
@justinhoward justinhoward deleted the update-specs-for-updated-gems branch March 12, 2025 16:10
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