Sha256: e87d1fdbefb50614dc88c043e9f90301a24013f9871e94c169367fe0b014ea1a
Contents?: true
Size: 603 Bytes
Versions: 126
Compression:
Stored size: 603 Bytes
Contents
require 'optparse' module Spec #:nodoc: module Runner #:nodoc: # Neuters RSpec's option parser. # (RSpec's option parser tries to parse ARGV, which # will fail when running cucumber) class OptionParser < ::OptionParser #:nodoc: NEUTERED_RSPEC = Object.new def NEUTERED_RSPEC.method_missing(m, *args); self; end def self.method_added(m) unless @__neutering_rspec @__neutering_rspec = true define_method(m) do |*a| NEUTERED_RSPEC end @__neutering_rspec = false end end end end end
Version data entries
126 entries across 124 versions & 19 rubygems