diff options
author | Andre Arko <andre@arko.net> | 2015-08-01 17:53:04 -0700 |
---|---|---|
committer | Eduardo Bautista <me@eduardobautista.com> | 2015-08-02 01:34:54 -0500 |
commit | 61fde24adbbb4c73d842e851330acde4d75ace56 (patch) | |
tree | b20e54a74697dadf7bca4e3e478d7e2e5725c2fe | |
parent | 5f2d983fc909290599d04f4cd414334552add172 (diff) | |
download | bundler-61fde24adbbb4c73d842e851330acde4d75ace56.tar.gz |
Failing spec for #3896
Tests for the problem reported in #3887, #3158
-rw-r--r-- | spec/cache/gems_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/cache/gems_spec.rb b/spec/cache/gems_spec.rb index 1d26f5011b..53a46c5e9f 100644 --- a/spec/cache/gems_spec.rb +++ b/spec/cache/gems_spec.rb @@ -116,6 +116,16 @@ describe "bundle cache" do bundle "install --local" should_be_installed("builtin_gem_2 1.0.2") end + + it "errors if the builtin gem isn't available to cache" do + install_gemfile <<-G + gem 'builtin_gem', '1.0.2' + G + + bundle :cache + expect(exitstatus).to_not eq(0) if exitstatus + expect(out).to include("builtin_gem-1.0.2 is built in to Ruby, and can't be cached") + end end describe "when there are also git sources" do |