uninitialized constant ApplicationRecord
factory :test_user, class: User do
Since Rails 5 a model file
application_record.rb with class
ApplicationRecord is generated. Every new model should inherit from that class instead of
ActiveRecord::Base to prevent mokey patching of
ApplicationRecord is the new entry point for extensions.