summaryrefslogtreecommitdiff
path: root/spec/install/gems/compact_index_spec.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-02-12 22:17:35 -0800
committerSamuel Giddins <segiddins@segiddins.me>2017-02-13 14:10:19 -0600
commit659c1f9703fb4a12f36ff0c992eb5fd03c6a1c32 (patch)
tree5c890b402b2288702fbe440fa9bf1b41a3be6053 /spec/install/gems/compact_index_spec.rb
parent09358d459565c39314eea933020c8f848b3cfce0 (diff)
downloadbundler-659c1f9703fb4a12f36ff0c992eb5fd03c6a1c32.tar.gz
Fail gracefully when installing a spec where the API is missing deps
Diffstat (limited to 'spec/install/gems/compact_index_spec.rb')
-rw-r--r--spec/install/gems/compact_index_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/install/gems/compact_index_spec.rb b/spec/install/gems/compact_index_spec.rb
index 12f82e9063..3f39e420b7 100644
--- a/spec/install/gems/compact_index_spec.rb
+++ b/spec/install/gems/compact_index_spec.rb
@@ -753,4 +753,15 @@ The checksum of /versions does not match the checksum provided by the server! So
gem "rack"
G
end
+
+ it "doesn't explode when the API dependencies are wrong" do
+ install_gemfile <<-G, :artifice => "compact_index_wrong_dependencies"
+ source "#{source_uri}"
+ gem "rails"
+ G
+ expect(out).to end_with(<<-E.strip)
+Downloading rails-2.3.2 revealed dependencies not in the API (rake (= 10.0.2), actionpack (= 2.3.2), activerecord (= 2.3.2), actionmailer (= 2.3.2), activeresource (= 2.3.2)).
+Installing with `--full-index` should fix the problem.
+ E
+ end
end