Skip to content

Instantly share code, notes, and snippets.

View rails-template.rb
inject_into_file 'Gemfile', after: "group :development, :test do\n" do <<-'RUBY'
gem 'faker', '~> 1.9'
RUBY
end
inject_into_file 'Gemfile', after: "group :development, :test do\n" do <<-'RUBY'
gem 'factory_bot_rails', '~> 5.0'
RUBY
end