Sha256: 7314bc1bb1426f0144061b3bcffbe554be4a55b219c3a537f6b9e826d2c50c81
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
# Bootstraps the RSpec library from within Ruby. =begin Copyright 2006 Suraj N. Kurapati Copyright 2006 RSpec project This file is part of Ruby-VPI. Ruby-VPI is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Ruby-VPI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Ruby-VPI; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. =end require 'rubygems' require_gem 'rspec' require 'spec' # prevent RSpec termination when no arguments are provided ARGV.unshift '' # in rspec 0.7.2, they changed create_context_runner from a class method into an instance methed op = ::Spec::Runner::OptionParser op = op.new unless op.respond_to? :create_context_runner $context_runner = op.create_context_runner(ARGV, false, STDERR, STDOUT) at_exit {$context_runner.run false}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-vpi-11.1.1 | lib/ruby-vpi/rspec.rb |