1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00

Change string to User class reference in Getting Started doc

User was quoted in the example that presumably shows how to refer to a
class directly, which makes the subsequent usage example

> you can also pass a symbol or string,

confusing.
This commit is contained in:
Paul Jensen 2020-04-20 14:46:56 -04:00 committed by Daniel Colson
parent c7b06a7821
commit 78662b5010

View file

@ -119,7 +119,7 @@ It is also possible to explicitly specify the class:
```ruby
# This will use the User class (otherwise Admin would have been guessed)
factory :admin, class: "User"
factory :admin, class: User
```
If the constant is not available