Skip to content

Commit

Permalink
Remove broken example from README
Browse files Browse the repository at this point in the history
Added in #836, but it doesn't work:

[25] pry(main)> Faker::Name.unique + ((1..1000).to_a).sample
NoMethodError: undefined method `+' for Faker::Name:Class
from /Users/dentarg/.gem/ruby/2.4.2/gems/faker-1.8.4/lib/faker.rb:185:in `method_missing'
  • Loading branch information
dentarg authored and stympy committed Dec 4, 2017
1 parent 2f1e5b9 commit 90ddb91
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,6 @@ that have been returned, for example between tests.
Faker::Name.unique.clear # Clears used values for Faker::Name
Faker::UniqueGenerator.clear # Clears used values for all generators
```
It is also possible to add a random number to the end of faker data to increase the
likelihood of unique data being generated. For example:

```ruby
Faker::Name.unique + ((1..1000).to_a).sample
```

### Deterministic Random

Expand Down

0 comments on commit 90ddb91

Please sign in to comment.