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



200
201
202
# File 'lib/amqp-spec/rspec.rb', line 200

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

Instance Method Details

#instance_eval(&block) ⇒ Object



206
207
208
209
210
# File 'lib/amqp-spec/rspec.rb', line 206

def instance_eval(&block)
  em do
    super(&block)
  end
end

#instance_eval_without_event_loopObject



204
# File 'lib/amqp-spec/rspec.rb', line 204

alias instance_eval_without_event_loop instance_eval