Sha256: 05cb08ba6d2354ab31264e0ee676ad9106187aa5bdbb6d1b64fedb6c01e7e405
Contents?: true
Size: 755 Bytes
Versions: 50
Compression:
Stored size: 755 Bytes
Contents
require 'pathname' require 'rspec' module RegexpParserSpec class Runner def initialize(arguments, warning_whitelist) @arguments = arguments @warning_whitelist = warning_whitelist end def run spec_status = nil Warning::Filter.new(warning_whitelist).assert_expected_warnings_only do setup spec_status = run_rspec end spec_status end private def setup $VERBOSE = true spec_files.each(&method(:require)) end def run_rspec RSpec::Core::Runner.run([]) end def spec_files arguments .map { |path| Pathname.new(path).expand_path.freeze } .select(&:file?) end attr_reader :arguments, :warning_whitelist end end
Version data entries
50 entries across 37 versions & 9 rubygems