diff options
| author | Carl Lerche <me@carllerche.com> | 2011-02-12 17:47:44 -0800 |
|---|---|---|
| committer | Carl Lerche <me@carllerche.com> | 2011-02-12 17:47:44 -0800 |
| commit | 87b74d97347fdc82dc194f68751a482db62ab790 (patch) | |
| tree | 578a429831d02662d927b98a3330ec40b23b34f7 /spec/install/path_spec.rb | |
| parent | 0527f485ba9c824f7ac4a91bff191c016c2425d4 (diff) | |
| download | bundler-87b74d97347fdc82dc194f68751a482db62ab790.tar.gz | |
Don't check development dependencies when unlocking locked gems in a path source
Diffstat (limited to 'spec/install/path_spec.rb')
| -rw-r--r-- | spec/install/path_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/install/path_spec.rb b/spec/install/path_spec.rb index a8124217aa..ba4d7e26cb 100644 --- a/spec/install/path_spec.rb +++ b/spec/install/path_spec.rb @@ -161,6 +161,27 @@ describe "bundle install with explicit source paths" do should_be_installed "rack 1.0" end + it "doesn't automatically unlock dependencies when using the gemspec syntax and the gem has development dependencies" do + build_lib "foo", "1.0", :path => lib_path("foo") do |s| + s.add_dependency "rack", ">= 1.0" + s.add_development_dependency "activesupport" + end + + Dir.chdir lib_path("foo") + + install_gemfile lib_path("foo/Gemfile"), <<-G + source "file://#{gem_repo1}" + gemspec + G + + build_gem "rack", "1.0.1", :to_system => true + + bundle "install" + + should_be_installed "foo 1.0" + should_be_installed "rack 1.0" + end + it "raises if there are multiple gemspecs" do build_lib "foo", "1.0", :path => lib_path("foo") do |s| s.write "bar.gemspec" |
