Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

--deployment should use the endpoint

  • Loading branch information...
commit 68e7ae35bb9259a1b160c096d3b1735a03466903 1 parent b505483
Terence Lee hone authored
1  lib/bundler/spec_set.rb
@@ -80,6 +80,7 @@ def materialize(deps, missing_specs = nil)
80 80 materialized = self.for(deps, [], false, true).to_a
81 81 materialized.map! do |s|
82 82 next s unless s.is_a?(LazySpecification)
  83 + s.source.dependencies = deps if s.source.respond_to?(:dependencies=)
83 84 spec = s.__materialize__
84 85 if missing_specs
85 86 missing_specs << s unless spec
12 spec/install/gems/dependency_api_spec.rb
@@ -41,6 +41,18 @@
41 41 should_be_installed "net-sftp 1.1.1"
42 42 end
43 43
  44 + it "should use the endpoint when using --deployment" do
  45 + gemfile <<-G
  46 + source "#{source_uri}"
  47 + gem "rack"
  48 + G
  49 + bundle :install, :artifice => "endpoint"
  50 +
  51 + bundle "install --deployment", :artifice => "endpoint"
  52 + out.should include("Fetching dependency information from the API at #{source_uri}")
  53 + should_be_installed "rack 1.0.0"
  54 + end
  55 +
44 56 it "falls back when the API errors out" do
45 57 simulate_platform mswin
46 58

0 comments on commit 68e7ae3

Please sign in to comment.
Something went wrong with that request. Please try again.