Module: Kernel

Defined in:
lib/spec/runner/extensions/kernel.rb

Instance Method Summary collapse

Instance Method Details

#context(name, &block) ⇒ Object



2
3
4
5
# File 'lib/spec/runner/extensions/kernel.rb', line 2

def context(name, &block)
  context = Spec::Runner::Context.new(name, &block)
  context_runner.add_context(context)
end