Skip to content

Run the suite without minitest/mock - #14

Open
khalilgharbaoui wants to merge 1 commit into
cheddar-me:mainfrom
khalilgharbaoui:run-the-suite-on-minitest-6
Open

Run the suite without minitest/mock#14
khalilgharbaoui wants to merge 1 commit into
cheddar-me:mainfrom
khalilgharbaoui:run-the-suite-on-minitest-6

Conversation

@khalilgharbaoui

Copy link
Copy Markdown

The test helper requires minitest/mock, which minitest 6 moved into a gem of its own, so on any Ruby which resolves minitest 6 (Ruby 4.0 does) the helper cannot require and the suite does not boot at all.

The only place which needed it stubbed the token encryptor in one test. That now happens by hand in four lines, so nothing has to be pinned and the suite runs on minitest 5 and 6 alike.

Verified on minitest 6.0.6 with no pin: 72 runs, 159 assertions, 0 failures.

Minitest 6 moved Minitest::Mock, and with it Object#stub, into a gem of its
own, so the test helper could not even require and the suite did not boot on
any Ruby which resolves minitest 6. The one place which stubbed - swapping the
token encryptor - now does it by hand in four lines. Verified on minitest 6.0.6
with no pin: 72 runs, 0 failures.
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.

1 participant