diff options
| author | Keith Shook <keith.shook@ontariosystems.com> | 2015-03-06 09:57:04 -0500 |
|---|---|---|
| committer | Keith Shook <keith.shook@ontariosystems.com> | 2015-03-06 09:57:04 -0500 |
| commit | 1f0e5c19e19b2a2d83a67da4e5d38fff26a4d4c5 (patch) | |
| tree | d953cd492d4af62fc1829c0e8ad87e4d70649f3d /spec/resolver/basic_spec.rb | |
| parent | 1c6ed5a9629851613aee87c454d64f15bc80fa12 (diff) | |
| download | bundler-1f0e5c19e19b2a2d83a67da4e5d38fff26a4d4c5.tar.gz | |
Added a test that exposes a scenario in some versions of bundler where a bundle install gets a lower version of a direct requirement than it should. See https://github.com/bundler/bundler/issues/3459
Diffstat (limited to 'spec/resolver/basic_spec.rb')
| -rw-r--r-- | spec/resolver/basic_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/resolver/basic_spec.rb b/spec/resolver/basic_spec.rb index 1245898564..5b1748fbaa 100644 --- a/spec/resolver/basic_spec.rb +++ b/spec/resolver/basic_spec.rb @@ -62,4 +62,18 @@ describe "Resolving" do }.to raise_error(Bundler::CyclicDependencyError, /please remove either gem 'bar' or gem 'foo'/i) end + # Issue #3459 + it "should install the latest possible version of a direct requirement with no constraints given" do + @index = a_complicated_index + dep "foo" + should_resolve_and_include %w(foo-3.0.5) + end + + # Issue #3459 + it "should install the latest possible version of a direct requirement with constraints given" do + @index = a_complicated_index + dep "foo", ">= 3.0.0" + should_resolve_and_include %w(foo-3.0.5) + end + end |
