diff options
author | rohit <rohit.arondekar@gmail.com> | 2012-12-04 16:00:26 +0530 |
---|---|---|
committer | rohit <rohit.arondekar@gmail.com> | 2012-12-04 16:00:26 +0530 |
commit | 3c58bb3a38a5301c17ccca61c121e85d93c9c4f6 (patch) | |
tree | 273dc7397b4cb25561f42861317d5a68185e5722 /spec | |
parent | f711a47214aa29d92b2bd69aad8a38fa20e8b4ec (diff) | |
download | bundler-3c58bb3a38a5301c17ccca61c121e85d93c9c4f6.tar.gz |
Warn if path to gem no longer exists #2070
Diffstat (limited to 'spec')
-rw-r--r-- | spec/other/show_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/other/show_spec.rb b/spec/other/show_spec.rb index 46ca7e65..55733531 100644 --- a/spec/other/show_spec.rb +++ b/spec/other/show_spec.rb @@ -29,6 +29,15 @@ describe "bundle show" do expect(out).to eq(default_bundle_path('gems', 'rails-2.3.2').to_s) end + it "warns if path no longer exists on disk" do + FileUtils.rm_rf("#{system_gem_path}/gems/rails-2.3.2") + + bundle "show rails" + + expect(out).to match('Warning: The following path to rails no longer exists') + expect(out).to match(default_bundle_path('gems', 'rails-2.3.2').to_s) + end + it "prints the path to the running bundler" do bundle "show bundler" expect(out).to eq(File.expand_path('../../../', __FILE__)) |