diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/resolver/basic_spec.rb | 8 | ||||
-rw-r--r-- | spec/support/indexes.rb | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/spec/resolver/basic_spec.rb b/spec/resolver/basic_spec.rb index c82b7ee8..99ffb429 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 b4b414d7..f704b5cf 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 |