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
24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/zygote/test.rb', line 24 def self.append_features(mod) mod.class_eval %[ around(:each) do |example| EM.synchrony do zygote( config_path: TestConfig.config_path, cells: TestConfig.cells ).start example.run EM.stop end end ] end |