From c6c0c58faf19cba0d4fac74de146e7823be1c0fa Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Thu, 3 Mar 2022 19:33:43 +0900 Subject: [PATCH] test-unit-activesupport 1.1.1 introduces a Ruby <= 2.2 incompatibility https://github.com/test-unit/test-unit-activesupport/commit/1195347f9419c327cf4045a16da193c3f9d20f97#diff-dd5b73f4727cbb37088c39bc398cf4d42316242e86f58dd8c645cca926943e88R95 --- Gemfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Gemfile b/Gemfile index e45ad3f..a616f78 100644 --- a/Gemfile +++ b/Gemfile @@ -25,6 +25,11 @@ gem 'selenium-webdriver' rails_version = ENV['RAILS_VERSION'] || '∞' +# test-unit-activesupport 1.1.1 introduces a Ruby <= 2.2 incompatibility +if RUBY_VERSION[/\d+\.\d+/] <= '2.2' + gem 'test-unit-activesupport', '1.1.0' +end + platforms :ruby do gem 'sqlite3', rails_version >= '5.1' ? '>= 1.4' : '< 1.4', require: false gem 'pg', rails_version >= '5.1' ? '>= 1.0.0' : '< 1.0.0', require: false