summaryrefslogtreecommitdiff
path: root/spec/resolver/basic_spec.rb
diff options
context:
space:
mode:
authorKeith Shook <keith.shook@ontariosystems.com>2015-03-06 09:57:04 -0500
committerKeith Shook <keith.shook@ontariosystems.com>2015-03-06 09:57:04 -0500
commit1f0e5c19e19b2a2d83a67da4e5d38fff26a4d4c5 (patch)
treed953cd492d4af62fc1829c0e8ad87e4d70649f3d /spec/resolver/basic_spec.rb
parent1c6ed5a9629851613aee87c454d64f15bc80fa12 (diff)
downloadbundler-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.rb14
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