Sha256: 47e3710b2b70e8799cb5b7216b3afee6f59406e0431afab3b0595a014d701a4d
Contents?: true
Size: 1.06 KB
Versions: 18
Compression:
Stored size: 1.06 KB
Contents
module RSpec module Core class CommandLine def initialize(options, configuration=RSpec::configuration, world=RSpec::world) if Array === options options = ConfigurationOptions.new(options) options.parse_options end @options = options @configuration = configuration @world = world end def run(err, out) @configuration.error_stream = err @configuration.output_stream ||= out @options.configure(@configuration) @configuration.load_spec_files @configuration.configure_mock_framework @configuration.configure_expectation_framework @world.announce_inclusion_filter @world.announce_exclusion_filter @configuration.reporter.report(@world.example_count) do |reporter| begin @configuration.run_hook(:before, :suite) @world.example_groups.map {|g| g.run(reporter)}.all? ensure @configuration.run_hook(:after, :suite) end end end end end end
Version data entries
18 entries across 18 versions & 3 rubygems