spec/spec_helper.rb in celluloid-zmq-0.16.0 vs spec/spec_helper.rb in celluloid-zmq-0.16.1
- old
+ new
@@ -7,14 +7,14 @@
logfile = File.open(File.expand_path("../../log/test.log", __FILE__), 'a')
Celluloid.logger = Logger.new(logfile)
Celluloid.shutdown_timeout = 1
-RSpec.configure do |config|
- config.treat_symbols_as_metadata_keys_with_true_values = true
+RSpec.configure(&:disable_monkey_patching!)
+RSpec.configure do |config|
config.around do |ex|
- Celluloid::ZMQ.init(1) unless example.metadata[:no_init]
+ Celluloid::ZMQ.init(1) unless ex.metadata[:no_init]
Celluloid.boot
ex.run
Celluloid.shutdown
Celluloid::ZMQ.terminate
end