summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2020-01-15 12:51:00 +0900
committerSutou Kouhei <kou@clear-code.com>2020-01-15 12:58:42 +0900
commit3144c069458bf74070424e675321887e2105e883 (patch)
tree0eb1722536c989d070f9cce4748cdc67b4a56f97 /spec/support
parent1ada1b737ba06af402cd9bb3d9d870761a0f649c (diff)
downloadbundler-3144c069458bf74070424e675321887e2105e883.tar.gz
Always add a spec group for all platforms to candidates
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/indexes.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/indexes.rb b/spec/support/indexes.rb
index dc6e0bd1e9..7440523fc9 100644
--- a/spec/support/indexes.rb
+++ b/spec/support/indexes.rb
@@ -26,6 +26,10 @@ module Spec
end
end
source_requirements ||= {}
+ args[0] ||= [] # base
+ args[1] ||= Bundler::GemVersionPromoter.new # gem_version_promoter
+ args[2] ||= [] # additional_base_requirements
+ args[3] ||= @platforms # platforms
Bundler::Resolver.resolve(deps, @index, source_requirements, *args)
end