Sha256: 0c48df299c093ff6527aceca9bcaefff2f82cef41ea722af704e2b73df060d7c
Contents?: true
Size: 428 Bytes
Versions: 71
Compression:
Stored size: 428 Bytes
Contents
require 'fakefs/safe' module ConfigOptionsHelper extend RSpec::SharedContext before do @orig_spec_opts = ENV["SPEC_OPTS"] ENV.delete("SPEC_OPTS") end after do ENV["SPEC_OPTS"] = @orig_spec_opts end def config_options_object(*args) coo = RSpec::Core::ConfigurationOptions.new(args) coo.parse_options coo end def parse_options(*args) config_options_object(*args).options end end
Version data entries
71 entries across 65 versions & 9 rubygems