From 87c1d83972f073157e4557a0d08d82c33ae9f5dc Mon Sep 17 00:00:00 2001 From: Emanuele Magliozzi Date: Sat, 28 Sep 2019 19:53:26 +1000 Subject: [PATCH] Fix how test files are loaded --- Rakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 6c2e5590..6e8bc02d 100644 --- a/Rakefile +++ b/Rakefile @@ -10,7 +10,8 @@ TEST_WITH_OLD_AND_NEW_API = %w[ ].freeze def dry_v_test_files - api = ENV["DRY_VALIDATION"].to_f >= 1.0 ? "new" : "old" + dry_v_version = ENV.fetch("DRY_VALIDATION", "~> 0.13.0") + api = dry_v_version.gsub("~>", "").to_f >= 1.0 ? "new" : "old" TEST_WITH_OLD_AND_NEW_API.map { |file| "test/#{file}_#{api}_api.rb" } end