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

Fix number(digits: 1) always returns 0 #1712

Merged
merged 2 commits into from
Aug 31, 2019

Conversation

ianlet
Copy link
Contributor

@ianlet ianlet commented Aug 29, 2019

Fixes #1705

Note: Fixing number with one digit caused the test_insignificant_zero to fail. As it seemed that the behavior tested by test_insignificant_zero was already covered by test_number and test_decimal, I removed it to prevent duplication.

Copy link
Contributor

@Zeragamba Zeragamba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me.

Copy link
Member

@bpleslie bpleslie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@vbrazo vbrazo merged commit 2cf87a1 into faker-ruby:master Aug 31, 2019
michebble pushed a commit to michebble/faker that referenced this pull request Feb 16, 2020
* Fix number(digits: 1) always returns 0

Fixes faker-ruby#1705

* remove unnecessary Base
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
* Fix number(digits: 1) always returns 0

Fixes faker-ruby#1705

* remove unnecessary Base
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.

Faker::Number.number(digits: 1) always returns 0
5 participants