Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
Update factory example to be more useful
Browse files Browse the repository at this point in the history
Since the basic user model is expected to have a unique email address the example has been updated to reflect this.
  • Loading branch information
halogenandtoast committed Feb 25, 2018
1 parent 277557c commit f850ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Which will change password hashing method to provide plaintext responses instead
```ruby
FactoryBot.define do
factory :user do
username 'wombat'
sequence(:email) { |n| "user#{n}@example.com" }
password_digest 'password'
end
end
Expand Down

0 comments on commit f850ea5

Please sign in to comment.