Skip to content

Fix deprecated mocha version - #620

Merged
VedranZoricic merged 1 commit into
masterfrom
vedran/update_mocha_version
Sep 1, 2025
Merged

Fix deprecated mocha version#620
VedranZoricic merged 1 commit into
masterfrom
vedran/update_mocha_version

Conversation

@VedranZoricic

@VedranZoricic VedranZoricic commented Sep 1, 2025

Copy link
Copy Markdown
Contributor

Context:
-Doing this because of PR #619
-Main issue https://github.com/intercom/intercom/issues/418231
This PR updates our testing dependencies to be compatible with Ruby 2.6:

  1. Updated Mocha integration method (spec/spec_helper.rb)
    - Changed from deprecated mocha/setup to explicit mocha/minitest
    - This eliminates the deprecation warning and ensures proper framework detection
  2. Upgraded Mocha version (intercom.gemspec)
    - Updated from ~> 1.0 to ~> 2.0
    - Mocha 2.x includes proper support for the MiniTest → Minitest transition
@VedranZoricic VedranZoricic self-assigned this Sep 1, 2025
@VedranZoricic
VedranZoricic requested a review from a team September 1, 2025 12:49
@VedranZoricic VedranZoricic changed the title Fix depredacted mocha version Sep 1, 2025
@VedranZoricic
VedranZoricic merged commit 65d32ac into master Sep 1, 2025
5 checks passed
@VedranZoricic
VedranZoricic deleted the vedran/update_mocha_version branch September 1, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants