Module: Zygote::ZygoteSpec
- Defined in:
- lib/zygote/test.rb
Overview
Run within synchrony block to prevent blocking
Class Method Summary collapse
Class Method Details
.append_features(mod) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/zygote/test.rb', line 23 def self.append_features(mod) mod.class_eval %[ around(:each) do |example| EM.synchrony do ZygoteServer.new( config_path: TestConfig.config_path, cells: TestConfig.cells ).start example.run EM.stop end end ] end |