Sha256: fbacf7eacc72c1078e03f65252845380cc0f94f833b6abec15454c6cb32694b9

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

require 'spec/runner/extensions/object'

module Kernel
  def context(name, &block)
    context = Spec::Runner::Context.new(name, &block)
    context_runner.add_context(context)
  end
  
private
  
  def context_runner
    if $context_runner.nil?; $context_runner = ::Spec::Runner::OptionParser.new.create_context_runner(ARGV.dup, STDERR, STDOUT, false); at_exit { $context_runner.run(false) }; end
    $context_runner
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-0.7.5 lib/spec/runner/extensions/kernel.rb
rspec-0.7.5.1 lib/spec/runner/extensions/kernel.rb