diff options
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |