Fix RSpec/FactoryBot/FactoryClassName offenses automatically

* Fixed with `rubocop -a --only RSpec/FactoryBot/FactoryClassName`
This commit is contained in:
Sebastian Serth
2021-02-12 00:17:49 +01:00
parent ba4e09e2d7
commit 635b9aa16f
8 changed files with 48 additions and 48 deletions

View File

@@ -1,5 +1,5 @@
FactoryBot.define do
factory :admin, class: InternalUser do
factory :admin, class: 'InternalUser' do
activated_user
association :consumer
email { 'admin@example.org' }
@@ -9,7 +9,7 @@ FactoryBot.define do
singleton_internal_user
end
factory :teacher, class: InternalUser do
factory :teacher, class: 'InternalUser' do
activated_user
association :consumer
generated_email