spec/helper/all.rb in em-synchrony-0.1.5 vs spec/helper/all.rb in em-synchrony-0.2.0
- old
+ new
@@ -1,17 +1,27 @@
require 'rubygems'
-require 'spec'
+require 'rspec'
require 'pp'
require 'lib/em-synchrony'
require 'lib/em-synchrony/em-http'
require 'lib/em-synchrony/em-mysqlplus'
require 'lib/em-synchrony/em-remcached'
+require 'lib/em-synchrony/em-memcache'
+require 'lib/em-synchrony/em-mongo'
+require 'lib/em-synchrony/em-redis'
require 'helper/tolerance_matcher'
require 'helper/stub-http-server'
def now(); Time.now.to_f; end
-Spec::Runner.configure do |config|
+def silence_warnings()
+ old_verbose, $VERBOSE = $VERBOSE, nil
+ yield
+ensure
+ $VERBOSE = old_verbose
+end
+
+RSpec.configure do |config|
config.include(Sander6::CustomMatchers)
-end
\ No newline at end of file
+end