From 72fd6dddfe673549dfedf06e9ab42796551d337f Mon Sep 17 00:00:00 2001 From: David Genord II Date: Tue, 13 Aug 2024 13:30:09 -0400 Subject: [PATCH] Fix rails 4.2 and 5.0 test dependencies --- Gemfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Gemfile b/Gemfile index d60e7589..23fcf81c 100644 --- a/Gemfile +++ b/Gemfile @@ -53,6 +53,10 @@ group :test do elsif ENV['RAILS_VERSION'] gem 'actionmailer', "~> #{ENV['RAILS_VERSION']}" gem 'activerecord', "~> #{ENV['RAILS_VERSION']}" + if ENV['RAILS_VERSION'] < '5.1' + gem 'rails-html-sanitizer', '< 1.4.0' + gem 'nokogiri', '< 1.11.0' + end else gem 'actionmailer', ['>= 3.0', '< 8.0'] gem 'activerecord', ['>= 3.0', '< 8.0']