spec/spec_helper.rb in ripple-0.8.0 vs spec/spec_helper.rb in ripple-0.8.1
- old
+ new
@@ -15,12 +15,15 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'riak-client','lib'))
require 'rubygems' # Use the gems path only for the spec suite
require 'ripple'
-require 'rspec/autorun'
+require 'rspec'
Dir[File.join(File.dirname(__FILE__), "support", "*.rb")].each {|f| require f }
Rspec.configure do |config|
config.mock_with :rspec
+ config.after(:each) do
+ $test_server.recycle if $test_server
+ end
end