Skip to content

Commit

Permalink
Remove broken example from README
Browse files Browse the repository at this point in the history
Added in faker-ruby#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 Dec 1, 2017
1 parent c972b0d commit e51d714
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 @@ -158,12 +158,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 e51d714

Please sign in to comment.