summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorchrismo <chrismo@clabs.org>2016-06-17 16:48:13 -0500
committerchrismo <chrismo@clabs.org>2016-07-08 19:35:57 -0500
commit5f63cad355e7736acaefab3c40266d033f67a4b8 (patch)
tree7a21b67d8e41e044a9786871f225c87dbd0be5a1 /spec
parent949dea29671e8dca1393ebefec00c8eaab318f60 (diff)
downloadbundler-5f63cad355e7736acaefab3c40266d033f67a4b8.tar.gz
Rename UpdateOptions=>DependencySearch
Diffstat (limited to 'spec')
-rw-r--r--spec/resolver/basic_spec.rb8
-rw-r--r--spec/support/indexes.rb4
2 files changed, 10 insertions, 2 deletions
diff --git a/spec/resolver/basic_spec.rb b/spec/resolver/basic_spec.rb
index c82b7ee859..99ffb429cc 100644
--- a/spec/resolver/basic_spec.rb
+++ b/spec/resolver/basic_spec.rb
@@ -177,5 +177,13 @@ describe "Resolving" do
# minimal option altogether. If that's what you need, use the Gemfile dependency.
should_consv_resolve_and_include [:minor, :minimal], [], %w(foo-1.4.4 bar-2.0.4)
end
+
+ it 'will not revert to a previous version'
+
+ it 'has taken care of all MODOs'
+
+ it 'has moved DependencySearch into its own file'
+
+ it 'has moved search_for impl out of Resolver into DependencySearch' # method called by Molinillo, but bulk can go off to dep_search
end
end
diff --git a/spec/support/indexes.rb b/spec/support/indexes.rb
index b4b414d790..f704b5cf17 100644
--- a/spec/support/indexes.rb
+++ b/spec/support/indexes.rb
@@ -58,12 +58,12 @@ module Spec
def should_consv_resolve_and_include(opts, unlock, specs)
# empty unlock means unlock all
opts = Array(opts)
- searcher = Bundler::Resolver::UpdateOptions.new(@locked, unlock).tap do |s|
+ search = Bundler::Resolver::DependencySearch.new(@locked, unlock).tap do |s|
s.level = opts.first
s.strict = opts.include?(:strict)
s.minimal = opts.include?(:minimal)
end
- should_resolve_and_include specs, [{}, [], nil, searcher]
+ should_resolve_and_include specs, [{}, [], nil, search]
end
def an_awesome_index