woke factory girl

This commit is contained in:
Benjamin
2021-04-21 17:21:58 -05:00
parent 46fc427694
commit f96ae22388
8 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
FactoryBot.define do
factory :user do
sequence( :email ){|i| "test#{i}@example.com" }
password "secret"
password { "secret" }
trait :other_auth do
sequence( :email ){|i| "test-other-user#{i}@example.com" }
auth_data( {
auth_data {{
'info' => {
'nickname' => "UOther",
"name" => "USR Other",
@@ -15,7 +15,7 @@ FactoryBot.define do
"token" => "fbAuthToken234",
'expires' => false
}
})
}}
end
end
end