Skip to content

Commit

Permalink
Fix how test files are loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
emaglio committed Nov 1, 2019
1 parent 9443891 commit 87c1d83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 87c1d83

Please sign in to comment.