From 2da05479ed24416fe803bb0a454e0c40cc699e1f Mon Sep 17 00:00:00 2001 From: nikolaipolevoi Date: Thu, 16 Mar 2023 15:08:01 +0400 Subject: [PATCH] Add config for FactoryBot in rails_helper.rb --- application/template.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/template.rb b/application/template.rb index 4e160cf..f384858 100644 --- a/application/template.rb +++ b/application/template.rb @@ -42,6 +42,10 @@ def apply_template! run_rspec_generator + insert_into_file 'spec/rails_helper.rb', <<-RUBY, after: 'RSpec.configure do |config|' + config.include FactoryBot::Syntax::Methods + RUBY + template 'Procfile.dev.tt', 'Procfile.dev', force: true template 'eslintrc.tt', '.eslintrc'