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

Allow for passing a string value to the getbit method #203

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

kmasuda-aiming
Copy link
Contributor

#200 setbit allow string value, but getbit not allow string value.

> require 'mock_redis'
> mr = MockRedis.new
> mr.set "key", "A"
> mr.setbit "key", "6", 1
NoMethodError: undefined method `/' for "6":String
from mock_redis-0.27.0/lib/mock_redis/string_methods.rb:96:in `getbit'

Fix above error.

@sds sds added the bug label Jan 7, 2021
@sds sds merged commit 6b09042 into sds:master Jan 7, 2021
@kmasuda-aiming kmasuda-aiming deleted the fix-getbit branch January 7, 2021 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants