Module: EventedSpec::SpecHelper::AMQPHelpers::ExampleMethods
- Included in:
- EventedSpec::SpecHelper
- Defined in:
- lib/evented-spec/spec_helper/amqp_helpers.rb
Overview
module GroupMethods
Instance Method Summary collapse
-
#amqp(opts = {}) { ... } ⇒ Object
Yields to a given block inside EM.run and AMQP.start loops.
Instance Method Details
#amqp(opts = {}) { ... } ⇒ Object
Yields to a given block inside EM.run and AMQP.start loops.
37 38 39 40 41 |
# File 'lib/evented-spec/spec_helper/amqp_helpers.rb', line 37 def amqp(opts = {}, &block) opts = .merge opts @evented_example = AMQPExample.new(opts, self, &block) @evented_example.run end |