diff options
-rw-r--r-- | spec/commands/show_spec.rb | 2 | ||||
-rw-r--r-- | spec/spec_helper.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/commands/show_spec.rb b/spec/commands/show_spec.rb index 05a0f165e3..efbe4b13fb 100644 --- a/spec/commands/show_spec.rb +++ b/spec/commands/show_spec.rb @@ -86,7 +86,7 @@ RSpec.describe "bundle show", :bundler => "< 2", :ruby => ">= 2.0" do and include(default_bundle_path("gems", "rails-2.3.2").to_s) end - it "prints the path to the running bundler", :ruby_repo do + it "prints the path to the running bundler" do bundle "show bundler" expect(out).to eq(root.to_s) end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b22b6b56ea..30d3bda130 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -122,13 +122,13 @@ RSpec.configure do |config| c.syntax = :expect end - config.around :suite do |example| + config.around :each do |example| if ENV["BUNDLE_RUBY"] - @orig_ruby = Gem.ruby + orig_ruby = Gem.ruby Gem.ruby = ENV["BUNDLE_RUBY"] end example.run - Gem.ruby = @orig_ruby if ENV["BUNDLE_RUBY"] + Gem.ruby = orig_ruby if ENV["BUNDLE_RUBY"] end config.before :all do |