Sha256: a475f13af31c23bc24be408f689773fe7cd95dfc26520872bf910d3d4a97e8fa
Contents?: true
Size: 629 Bytes
Versions: 5
Compression:
Stored size: 629 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems