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

Faker::Lorem.words(500) produces only 249 words without warning or error! #172

Closed
gouthamvel opened this issue Feb 4, 2014 · 3 comments
Closed

Comments

@gouthamvel
Copy link

 irb(main):002:0> Faker::Lorem.words(500).size
 => 249

I had to spend couple of hours before I could figured why my test were failing.
Ideally I would expect lib to throw an error or auto include supplement words if the size of standard words is smaller than requested number of words.

What would be the right way? throw an error or auto include additional words?

@mhutter
Copy link
Contributor

mhutter commented Feb 7, 2014

Nah, I would expect the lib to output 500 words ;-)

@keathley
Copy link
Contributor

keathley commented Feb 8, 2014

Would something like this work?

@stympy
Copy link
Contributor

stympy commented Jul 3, 2014

Fixed in #173

@stympy stympy closed this as completed Jul 3, 2014
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

No branches or pull requests

4 participants