Sha256: fd9fa6ad057d8dabd6db2c933d1d6c73dbc6e066a0d2915a5a255ab7e3260d9a
Contents?: true
Size: 516 Bytes
Versions: 8
Compression:
Stored size: 516 Bytes
Contents
module Kernel def context(name, &block) context = Spec::Runner::Context.new(name, &block) context_runner.add_context(context) end private def context_runner # TODO: Figure out a better way to get this considered "covered" and keep this statement on multiple lines unless $context_runner; \ $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
8 entries across 8 versions & 3 rubygems