diff --git a/test/multiverse/suites/config_file_loading/Envfile b/test/multiverse/suites/config_file_loading/Envfile index 9613346c19..8974bf37de 100644 --- a/test/multiverse/suites/config_file_loading/Envfile +++ b/test/multiverse/suites/config_file_loading/Envfile @@ -18,14 +18,23 @@ def stringio_version end end + +def date_version + if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.4') + "gem 'date', '~> 3.3.4'" + else + "gem 'date'" + end +end + def gem_list(psych_version = nil) <<~RB #{stringio_version} + #{date_version} # stub file system so we can test that newrelic.yml can be loaded from # various places. gem 'fakefs', :require => false - gem 'date', '3.4.1' if Gem::Version.new(#{psych_version}) >= Gem::Version.new('5.2.1') gem 'psych'#{psych_version} gem 'jar-dependencies', '0.4.1' if RUBY_PLATFORM == 'java'