Module: EventedSpec::AMQPSpec::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#it(*args, &block) ⇒ Object



16
17
18
19
20
21
22
23
24
# File 'lib/evented-spec/amqp_spec.rb', line 16

def it(*args, &block)
  if block
    new_block = Proc.new {|example_group_instance| (example_group_instance || self).instance_eval { amqp(&block) } }
    super(*args, &new_block)
  else
    # pending example
    super
  end
end