Hide FactoryBot deprecation warning by changing static assignment

Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
This commit is contained in:
Sebastian Serth
2018-09-11 10:53:58 +02:00
parent ac31afbd2a
commit 1f12b39731
12 changed files with 217 additions and 217 deletions

View File

@@ -1,10 +1,10 @@
FactoryBot.define do
factory :admin, class: InternalUser do
activated_user
email 'admin@example.org'
email { 'admin@example.org' }
generated_user_name
password 'admin'
role 'admin'
password { 'admin' }
role { 'admin' }
singleton_internal_user
end
@@ -13,8 +13,8 @@ FactoryBot.define do
association :consumer
generated_email
generated_user_name
password 'teacher'
role 'teacher'
password { 'teacher' }
role { 'teacher' }
singleton_internal_user
end