Module: AMQP::EMSpec
- Defined in:
- lib/amqp-spec/rspec.rb
Overview
Including AMQP::EMSpec module into your example group, each example of this group will run inside EM.run loop without the need to explicitly call ‘em’.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(example_group) ⇒ Object
198 199 200 |
# File 'lib/amqp-spec/rspec.rb', line 198 def self.included(example_group) example_group.send(:include, SpecHelper) end |
Instance Method Details
#instance_eval(&block) ⇒ Object
204 205 206 207 208 |
# File 'lib/amqp-spec/rspec.rb', line 204 def instance_eval(&block) em do super(&block) end end |
#instance_eval_without_event_loop ⇒ Object
202 |
# File 'lib/amqp-spec/rspec.rb', line 202 alias instance_eval_without_event_loop instance_eval |