Module: EventedSpec::AMQPSpec
- Defined in:
- lib/evented-spec/amqp_spec.rb
Overview
If you include EventedSpec::AMQPSpec module into your example group, each example of this group will run inside AMQP.start loop without the need to explicitly call ‘amqp’. In order to provide options to AMQP loop, default_options class method is defined. Remember, when using EventedSpec::Specs, you’ll have a single set of AMQP.start options for all your examples.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(example_group) ⇒ Object
9 10 11 12 |
# File 'lib/evented-spec/amqp_spec.rb', line 9 def self.included(example_group) example_group.send(:include, SpecHelper) example_group.extend(ClassMethods) end |