Skip to content

Commit c000b9e

Browse files
authored
[Docs] Add proper factory definition in example (#1688)
1 parent 5a92a91 commit c000b9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/src/traits/using.md

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ the "Building or Creating Multiple Records" section of this file.
3131
factory :user do
3232
name { "Friendly User" }
3333

34+
trait :active do
35+
name { "John Doe" }
36+
status { :active }
37+
end
38+
3439
trait :admin do
3540
admin { true }
3641
end

0 commit comments

Comments
 (0)