summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-11-13 23:31:46 -0600
committerSamuel Giddins <segiddins@segiddins.me>2016-11-13 23:31:46 -0600
commitf4f2941b21e736b64ea4ca86dee1731a55792921 (patch)
treefd7b60ec2c179f2ff8dea68183e65f4553a0117c
parent27bdbcfa73f6387e0d8d9e16768a0052d209a1fd (diff)
downloadbundler-f4f2941b21e736b64ea4ca86dee1731a55792921.tar.gz
Ensure that the local platforms are set for the specs in Ruby 2.4seg-ruby-2-4-spec-compat
-rw-r--r--spec/support/hax.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/support/hax.rb b/spec/support/hax.rb
index 2cca22c6ab..d00bf619a9 100644
--- a/spec/support/hax.rb
+++ b/spec/support/hax.rb
@@ -1,8 +1,11 @@
# frozen_string_literal: true
require "rubygems"
-class Gem::Platform
- @local = new(ENV["BUNDLER_SPEC_PLATFORM"]) if ENV["BUNDLER_SPEC_PLATFORM"]
+module Gem
+ class Platform
+ @local = new(ENV["BUNDLER_SPEC_PLATFORM"]) if ENV["BUNDLER_SPEC_PLATFORM"]
+ end
+ @platforms = [Gem::Platform::RUBY, Gem::Platform.local]
end
if ENV["BUNDLER_SPEC_VERSION"]