diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-01-21 12:51:30 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-01-21 16:03:22 -0600 |
commit | 82986ca65450f483d11c733e05c766dac9bbed64 (patch) | |
tree | 3043cc44e0c9437f5ed367b18de2fa55de7348a3 | |
parent | ac928434f60aab6375477af6bad5227783bde38b (diff) | |
download | bundler-82986ca65450f483d11c733e05c766dac9bbed64.tar.gz |
Add a spec for gemspec deps not requiring re-resolve
-rw-r--r-- | spec/install/gemfile/gemspec_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/install/gemfile/gemspec_spec.rb b/spec/install/gemfile/gemspec_spec.rb index 3ed4d116..1972bfe2 100644 --- a/spec/install/gemfile/gemspec_spec.rb +++ b/spec/install/gemfile/gemspec_spec.rb @@ -131,6 +131,20 @@ RSpec.describe "bundle install from an existing gemspec" do end end + it "should match a lockfile without needing to re-resolve" do + build_lib("foo", :path => tmp.join("foo")) do |s| + s.add_dependency "rack" + end + + install_gemfile! <<-G + source "file://#{gem_repo1}" + gemspec :path => '#{tmp.join("foo")}' + G + + bundle! "install", :verbose => true + expect(out).to include("Found no changes, using resolution from the lockfile") + end + it "should evaluate the gemspec in its directory" do build_lib("foo", :path => tmp.join("foo")) File.open(tmp.join("foo/foo.gemspec"), "w") do |s| |