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:
parent
c7b06a7821
commit
78662b5010
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue