summaryrefslogtreecommitdiff
path: root/spec/bundler/install/global_cache_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/install/global_cache_spec.rb')
-rw-r--r--spec/bundler/install/global_cache_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/bundler/install/global_cache_spec.rb b/spec/bundler/install/global_cache_spec.rb
index de7b511a1d..d93e158ed5 100644
--- a/spec/bundler/install/global_cache_spec.rb
+++ b/spec/bundler/install/global_cache_spec.rb
@@ -44,7 +44,7 @@ RSpec.describe "global gem caching" do
gem "rack"
G
- FileUtils.rm_r(default_bundle_path)
+ simulate_new_machine
expect(the_bundle).not_to include_gems "rack 1.0.0"
expect(source_global_cache("rack-1.0.0.gem")).to exist
# rack 1.0.0 is not installed and it is in the global cache
@@ -54,7 +54,7 @@ RSpec.describe "global gem caching" do
gem "rack", "0.9.1"
G
- FileUtils.rm_r(default_bundle_path)
+ simulate_new_machine
expect(the_bundle).not_to include_gems "rack 0.9.1"
expect(source2_global_cache("rack-0.9.1.gem")).to exist
# rack 0.9.1 is not installed and it is in the global cache
@@ -68,7 +68,7 @@ RSpec.describe "global gem caching" do
# rack 1.0.0 is installed and rack 0.9.1 is not
expect(the_bundle).to include_gems "rack 1.0.0"
expect(the_bundle).not_to include_gems "rack 0.9.1"
- FileUtils.rm_r(default_bundle_path)
+ simulate_new_machine
gemfile <<-G
source "#{source2}"
@@ -88,7 +88,7 @@ RSpec.describe "global gem caching" do
G
bundle! :install, :artifice => "compact_index"
- FileUtils.rm_r(default_bundle_path)
+ simulate_new_machine
expect(the_bundle).not_to include_gems "rack 1.0.0"
expect(source_global_cache("rack-1.0.0.gem")).to exist
# rack 1.0.0 is not installed and it is in the global cache
@@ -99,7 +99,7 @@ RSpec.describe "global gem caching" do
G
bundle! :install, :artifice => "compact_index"
- FileUtils.rm_r(default_bundle_path)
+ simulate_new_machine
expect(the_bundle).not_to include_gems "rack 0.9.1"
expect(source2_global_cache("rack-0.9.1.gem")).to exist
# rack 0.9.1 is not installed and it is in the global cache
@@ -145,7 +145,7 @@ RSpec.describe "global gem caching" do
expect(the_bundle).to include_gems "activesupport 2.3.5"
expect(source_global_cache("rack-1.0.0.gem")).to exist
expect(source_global_cache("activesupport-2.3.5.gem")).to exist
- FileUtils.rm_r(default_bundle_path)
+ simulate_new_machine
# Both gems are now only in the global cache
expect(the_bundle).not_to include_gems "rack 1.0.0"
expect(the_bundle).not_to include_gems "activesupport 2.3.5"
@@ -185,7 +185,7 @@ RSpec.describe "global gem caching" do
end
end
- describe "extension caching", :ruby_repo do
+ describe "extension caching" do
it "works" do
skip "gets incorrect ref in path" if Gem.win_platform?