diff options
Diffstat (limited to 'spec/support/helpers.rb')
-rw-r--r-- | spec/support/helpers.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index f0803453d2..ff1a9b6823 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -281,7 +281,7 @@ module Spec gems.each do |g| if g == :bundler with_built_bundler {|gem_path| install_gem(gem_path) } - elsif g.to_s =~ %r{\A(?:[A-Z]:)?/.*\.gem\z} + elsif g.to_s =~ %r{\A(?:[a-zA-Z]:)?/.*\.gem\z} install_gem(g) else install_gem("#{gem_repo}/gems/#{g}.gem") @@ -344,6 +344,8 @@ module Spec end def with_fake_man + skip "fake_man is not a Windows friendly binstub" if Gem.win_platform? + FileUtils.mkdir_p(tmp("fake_man")) File.open(tmp("fake_man/man"), "w", 0o755) do |f| f.puts "#!/usr/bin/env ruby\nputs ARGV.inspect\n" |