Skip to content

Commit

Permalink
gem_helper.rb - fixup to check Minitest version
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg committed Jan 3, 2024
1 parent 0da2f47 commit 1a2c7d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/testup/gem_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module GemHelper
def self.require(gem_name, filename, version: Gem::Requirement.default)
Kernel.require 'rubygems'
begin
gem gem_name
gem gem_name, ">=#{version}"
rescue Gem::LoadError
puts "Installing Gem: #{gem_name} (Please wait...)"
begin
Expand All @@ -24,7 +24,7 @@ def self.require(gem_name, filename, version: Gem::Requirement.default)
# a bug. This pattern is probably not that common, to be
# programmatically installing gems.
end
gem gem_name
gem gem_name, ">=#{version}"
end
Kernel.require filename
end
Expand Down

0 comments on commit 1a2c7d5

Please sign in to comment.