Module: EventedSpec::EMSpec

Defined in:
lib/evented-spec/em_spec.rb

Overview

Including EventedSpec::EMSpec module into your example group, each example of this group will run inside EM.run loop without the need to explicitly call ‘em’.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(example_group) ⇒ Object



6
7
8
9
# File 'lib/evented-spec/em_spec.rb', line 6

def self.included(example_group)
  example_group.send(:include, SpecHelper)
  example_group.extend ClassMethods
end