Module: Kernel

Defined in:
lib/spec/runner/kernel_ext.rb

Instance Method Summary collapse

Instance Method Details

#context(name, &block) ⇒ Object



2
3
4
5
6
7
# File 'lib/spec/runner/kernel_ext.rb', line 2

def context(name, &block)
  context = Spec::Runner::Context.new(name, &block)
  runner = context_runner
  runner.add_context(context)
  runner.run(false) if runner.standalone
end