Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous small fixes #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jamiemccarthy
Copy link

@jamiemccarthy jamiemccarthy commented Aug 10, 2022

Purpose

In the course of working on #20 , I noticed a few small fixes that could be made. This PR collects them.

Changes

The commit message for 5cf344b explains its purpose: not for the redis gem itself, but for older versions of the mock_redis gem.

Regarding 37ce088, Timecop when not used in block mode requires Timecop.return to be called manually to undo its effects. Otherwise its effects are global. This is easily overlooked. It might be appropriate to switch to block-only usage instead, but this commit is the smaller fix.

Tests

In my local testing, rake spec still passes.

Notes

I'm the author of this work (Jamie McCarthy, @jamiemccarthy) and I'm submitting this PR under the terms of the existing LICENSE.md in this repository.

This works fine for the redis gem either way, but mock_redis before
0.20.0 (May 2019) does not flatten the array and so requires this.
sds/mock_redis#147
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