Project

General

Profile

Actions

Patch #39070

closed

Allow using the latest version of mocha even when using Ruby < 2.7

Added by Go MAEDA about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Gems support
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

In #37883, we updated the Gemfile to restrict the version of mocha to avoid the following error that occurs when using mocha 2.0.0 with Ruby < 2.7.

cannot load such file -- ruby2_keywords (LoadError)

But we can now remove the restriction because the above problem was fixed in mocha 2.0.1 (see https://github.com/freerange/mocha/blob/v2.0.1/RELEASE.md#external-changes).

Patches are attached.


Files

mocha-version-trunk.diff (391 Bytes) mocha-version-trunk.diff Go MAEDA, 2023-09-18 10:43
mocha-version-5_0.diff (466 Bytes) mocha-version-5_0.diff Go MAEDA, 2023-09-18 10:43
mocha-version-4_2.diff (466 Bytes) mocha-version-4_2.diff Go MAEDA, 2023-09-18 10:43

Related issues

Related to Redmine - Patch #37883: Limit mocha version to < 2.0.0 when Ruby version is < 2.7 to avoid test errorClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF