From 890858e40b6d64e73f6b81d313de47dbac4829a0 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 4 Aug 2011 17:00:03 -0400 Subject: [PATCH] clear enough of rspec to work --- lib/hydra/runner.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/hydra/runner.rb b/lib/hydra/runner.rb index 93c068c..c2b35f2 100644 --- a/lib/hydra/runner.rb +++ b/lib/hydra/runner.rb @@ -157,8 +157,7 @@ module Hydra #:nodoc: config = [ '-f', 'progress', file ] - RSpec.instance_variable_set(:@world, nil) - RSpec.instance_variable_set(:@configuration, nil) + RSpec.world.reset begin result = RSpec::Core::Runner.run(config, hydra_output, hydra_output) rescue Exception => ex